summaryrefslogtreecommitdiffstats
path: root/server/scoreboard.c
diff options
context:
space:
mode:
authorGreg Ames <gregames@apache.org>2001-07-23 20:17:16 +0200
committerGreg Ames <gregames@apache.org>2001-07-23 20:17:16 +0200
commiteca0a9cd55a6bf30bb958afdc522b52fa4fe74c4 (patch)
treefdc3d85966d65c97a8ac1780650e268cca2a84f0 /server/scoreboard.c
parent cvs up kept this in :( (diff)
downloadapache2-eca0a9cd55a6bf30bb958afdc522b52fa4fe74c4.tar.xz
apache2-eca0a9cd55a6bf30bb958afdc522b52fa4fe74c4.zip
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
Diffstat (limited to 'server/scoreboard.c')
-rw-r--r--server/scoreboard.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/scoreboard.c b/server/scoreboard.c
index e575e53423..708d5878e6 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) {