]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r443503 from trunk:
authorRuediger Pluem <rpluem@apache.org>
Tue, 3 Oct 2006 12:52:56 +0000 (12:52 +0000)
committerRuediger Pluem <rpluem@apache.org>
Tue, 3 Oct 2006 12:52:56 +0000 (12:52 +0000)
* 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

modules/proxy/proxy_util.c

index a6f9874d4bc287c355968c0d7f377a4770e0436a..d6fecbdb83e8d78294871d0ce0f01d9403713aa8 100644 (file)
@@ -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;
     }