mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
conf->mutex is not used... Also, ensure that pool
use is protected git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1500437 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -2900,10 +2900,10 @@ PROXY_DECLARE(apr_status_t) ap_proxy_sync_balancer(proxy_balancer *b, server_rec
|
||||
}
|
||||
if (!found) {
|
||||
proxy_worker **runtime;
|
||||
apr_global_mutex_lock(proxy_mutex);
|
||||
runtime = apr_array_push(b->workers);
|
||||
apr_global_mutex_lock(conf->mutex);
|
||||
*runtime = apr_palloc(conf->pool, sizeof(proxy_worker));
|
||||
apr_global_mutex_unlock(conf->mutex);
|
||||
apr_global_mutex_unlock(proxy_mutex);
|
||||
(*runtime)->hash = shm->hash;
|
||||
(*runtime)->context = NULL;
|
||||
(*runtime)->cp = NULL;
|
||||
|
Reference in New Issue
Block a user