]> granicus.if.org Git - apache/commitdiff
* PROXY_WORKER_IS_INITIALIZED checks if PROXY_WORKER_INITIALIZED is set in
authorRuediger Pluem <rpluem@apache.org>
Thu, 14 Sep 2006 22:34:34 +0000 (22:34 +0000)
committerRuediger Pluem <rpluem@apache.org>
Thu, 14 Sep 2006 22:34:34 +0000 (22:34 +0000)
  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.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@443503 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_util.c

index edee0a61f4327aeb3ae9729fad3212a83823185a..f4b780d0cdae72cade6bd0e65883b46b89465978 100644 (file)
@@ -1774,7 +1774,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;
     }