From: Greg Ames Date: Mon, 23 Jul 2001 18:17:16 +0000 (+0000) Subject: prevent seg faults in mod_status with ExtendedStatus enabled, after X-Git-Tag: 2.0.22~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eca0a9cd55a6bf30bb958afdc522b52fa4fe74c4;p=thirdparty%2Fapache%2Fhttpd.git prevent seg faults in mod_status with ExtendedStatus enabled, after 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 --- diff --git a/server/scoreboard.c b/server/scoreboard.c index e575e53423d..708d5878e6d 100644 --- a/server/scoreboard.c +++ b/server/scoreboard.c @@ -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) {