From: Ruediger Pluem Date: Tue, 3 Oct 2006 12:52:56 +0000 (+0000) Subject: Merge r443503 from trunk: X-Git-Tag: 2.2.4~135 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26421b768ecab01d91488482011c782cf4544a33;p=thirdparty%2Fapache%2Fhttpd.git Merge r443503 from trunk: * PROXY_WORKER_IS_INITIALIZED checks if PROXY_WORKER_INITIALIZED is set in worker->s->status, but we need to check here if it is set in worker->status. As PROXY_WORKER_INITIALIZED is set in worker->s->status in ap_proxy_initialize_worker_share, which is called just before ap_proxy_initialize_worker we never initialize the worker. This is very bad as we create no reslist for the pool in this case. Reviewed by: jim, rpluem, trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@452465 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index a6f9874d4bc..d6fecbdb83e 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -1667,7 +1667,7 @@ PROXY_DECLARE(apr_status_t) ap_proxy_initialize_worker(proxy_worker *worker, ser int mpm_threads; #endif - if (PROXY_WORKER_IS_INITIALIZED(worker)) { + if (worker->status & PROXY_WORKER_INITIALIZED) { /* The worker is already initialized */ return APR_SUCCESS; }