1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

Do not use reslist if it wasn't created. This fixes cases on prefork with

threads enabled and hmax set.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105480 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mladen Turk
2004-10-16 06:52:35 +00:00
parent 5dc2d7319d
commit d19ff8597f

View File

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