From: Mladen Turk Date: Wed, 15 Sep 2004 17:11:08 +0000 (+0000) Subject: Fix core dump on WIN32 caused by the fact that there is no way to run a X-Git-Tag: 2.1.1~260 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89bcba3513d0b8406ee2d5ca5a84135534918a84;p=thirdparty%2Fapache%2Fhttpd.git Fix core dump on WIN32 caused by the fact that there is no way to run a hook after ap_scoreboard_init. Since we only have a single child on WIN32 that isn't a big problem, cause plain memory is enough. Other platforms were not affected cause scoreboard_image is inherited from parent. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105151 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_balancer.c b/modules/proxy/proxy_balancer.c index 16d4fdd0aed..0d6f3e342e3 100644 --- a/modules/proxy/proxy_balancer.c +++ b/modules/proxy/proxy_balancer.c @@ -52,7 +52,8 @@ static int init_runtime_score(apr_pool_t *pool, proxy_balancer *balancer) for (i = 0; i < balancer->workers->nelts; i++) { #if PROXY_HAS_SCOREBOARD /* Get scoreboard slot */ - score = ap_get_scoreboard_lb(workers[i].id); + if (ap_scoreboard_image) + score = ap_get_scoreboard_lb(workers[i].id); #endif if (!score) score = apr_pcalloc(pool, sizeof(proxy_runtime_stat));