From: Ruediger Pluem Date: Fri, 28 Dec 2007 15:53:45 +0000 (+0000) Subject: * Prevent crash in balancer manager if invalid balancer name is passed as X-Git-Tag: 2.3.0~1096 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d80bc134c9448200f7e7f06e916d33ab3add026d;p=thirdparty%2Fapache%2Fhttpd.git * Prevent crash in balancer manager if invalid balancer name is passed as parameter. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@607273 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index e07765c1bb0..ba9de5e5c11 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,9 @@ Changes with Apache 2.3.0 [ When backported to 2.2.x, remove entry from this file ] + *) Prevent crash in balancer manager if invalid balancer name is passed + as parameter. Reported by SecurityReason. [Ruediger Pluem] + *) mod_deflate: Transform ETag when transforming the entity. PR 39727 [Henrik Nordstrom , Nick Kew] diff --git a/modules/proxy/mod_proxy_balancer.c b/modules/proxy/mod_proxy_balancer.c index 9932e752827..6ea49b61610 100644 --- a/modules/proxy/mod_proxy_balancer.c +++ b/modules/proxy/mod_proxy_balancer.c @@ -671,7 +671,7 @@ static int balancer_handler(request_rec *r) proxy_worker *ws; ws = ap_proxy_get_worker(r->pool, conf, name); - if (ws) { + if (bsel && ws) { worker = (proxy_worker *)bsel->workers->elts; for (n = 0; n < bsel->workers->nelts; n++) { if (strcasecmp(worker->name, ws->name) == 0) {