]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Do not use reslist if it wasn't created. This fixes cases on prefork with
authorMladen Turk <mturk@apache.org>
Sat, 16 Oct 2004 06:52:35 +0000 (06:52 +0000)
committerMladen Turk <mturk@apache.org>
Sat, 16 Oct 2004 06:52:35 +0000 (06:52 +0000)
threads enabled and hmax set.

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

modules/proxy/proxy_util.c

index 5c77f48fff6a312fe765d21297b52695ed7e9bb4..ad01289946b7075fd715447a378760240d59b671 100644 (file)
@@ -1507,7 +1507,7 @@ PROXY_DECLARE(int) ap_proxy_acquire_connection(const char *proxy_function,
         }
     }
 #if APR_HAS_THREADS
-    if (worker->hmax) {
+    if (worker->hmax && worker->cp->res) {
         rv = apr_reslist_acquire(worker->cp->res, (void **)conn);
     }
     else