]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
prevent seg faults in mod_status with ExtendedStatus enabled, after
authorGreg Ames <gregames@apache.org>
Mon, 23 Jul 2001 18:17:16 +0000 (18:17 +0000)
committerGreg Ames <gregames@apache.org>
Mon, 23 Jul 2001 18:17:16 +0000 (18:17 +0000)
a restart.  A pointer to the previous generation's vhost server_rec
could be left in the worker_score under certain conditions.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89660 13f79535-47bb-0310-9956-ffa450edef68

server/scoreboard.c

index e575e53423dfc4025b9acf9c5d7327396d11ba6e..708d5878e6dcd2c10567d662bd0bcc3822d56893 100644 (file)
@@ -294,6 +294,7 @@ int ap_update_child_status(int child_num, int thread_num, int status, request_re
        && old_status == SERVER_STARTING) {
         ws->thread_num = child_num * HARD_SERVER_LIMIT + thread_num;
         ps->generation = ap_my_generation;
+        ws->vhostrec = NULL;
     }
 
     if (ap_extended_status) {