Commit 49cf6930 authored by Martin Kraemer's avatar Martin Kraemer
Browse files

Fix for platforms without threads: inreslist exists only if APR_HAS_THREADS is set

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@395180 13f79535-47bb-0310-9956-ffa450edef68
parent 63356105
Loading
Loading
Loading
Loading
+4 −0
Changes for modules/proxy/proxy_util.c: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -1567,7 +1567,9 @@ static apr_status_t connection_constructor(void **resource, void *params,

    conn->pool   = ctx;
    conn->worker = worker;
#if APR_HAS_THREADS
    conn->inreslist = 1;
#endif
    *resource = conn;

    return APR_SUCCESS;
@@ -1800,7 +1802,9 @@ PROXY_DECLARE(int) ap_proxy_acquire_connection(const char *proxy_function,
    (*conn)->worker = worker;
    (*conn)->close  = 0;
    (*conn)->close_on_recycle = 0;
#if APR_HAS_THREADS
    (*conn)->inreslist = 0;
#endif

    return OK;
}