From: Ruediger Pluem Date: Thu, 3 Jun 2021 18:31:15 +0000 (+0000) Subject: * We could get here again if a second thread deals with the X-Git-Tag: 2.5.0-alpha2-ci-test-only~929 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0192aa68b454b75b171b61f6f101e25b48d857be;p=thirdparty%2Fapache%2Fhttpd.git * We could get here again if a second thread deals with the signal as well. Should noit happen on prefork, but better safe than sorry. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1890441 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/prefork/prefork.c b/server/mpm/prefork/prefork.c index 732dabfe870..51d5211bd01 100644 --- a/server/mpm/prefork/prefork.c +++ b/server/mpm/prefork/prefork.c @@ -226,6 +226,11 @@ static void clean_child_exit(int code) if (pchild) { apr_pool_destroy(pchild); + /* + * Be safe in case someone still uses afterwards or we get here again. + * Should not happen. + */ + pchild = NULL; } if (one_process) {