]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* We could get here again if a second thread deals with the
authorRuediger Pluem <rpluem@apache.org>
Thu, 3 Jun 2021 18:31:15 +0000 (18:31 +0000)
committerRuediger Pluem <rpluem@apache.org>
Thu, 3 Jun 2021 18:31:15 +0000 (18:31 +0000)
  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

server/mpm/prefork/prefork.c

index 732dabfe8700134c54933badcb8de21e73da6508..51d5211bd01976a24b32d1a4875586319d0683c4 100644 (file)
@@ -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) {