]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Do not set shared data from previous worker if ap_get_scoreboard_lb fails.
authorMladen Turk <mturk@apache.org>
Wed, 15 Sep 2004 18:27:08 +0000 (18:27 +0000)
committerMladen Turk <mturk@apache.org>
Wed, 15 Sep 2004 18:27:08 +0000 (18:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105156 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_balancer.c

index 0d6f3e342e3a637e10ae4e402222e2fe3bdb0a51..05b8bf7010bce014fbb843b934f7312df2bbdbc6 100644 (file)
@@ -42,14 +42,15 @@ static int init_runtime_score(apr_pool_t *pool, proxy_balancer *balancer)
     double median, ffactor = 0.0;
     proxy_runtime_worker *workers;    
 #if PROXY_HAS_SCOREBOARD
-    lb_score *score = NULL;
+    lb_score *score;
 #else
-    void *score = NULL;
+    void *score;
 #endif
 
     workers = (proxy_runtime_worker *)balancer->workers->elts;
 
     for (i = 0; i < balancer->workers->nelts; i++) {
+        score = NULL;
 #if PROXY_HAS_SCOREBOARD
         /* Get scoreboard slot */
         if (ap_scoreboard_image)