From: Jim Jagielski Date: Mon, 14 Oct 2013 16:38:52 +0000 (+0000) Subject: check that we have a pool... X-Git-Tag: 2.5.0-alpha~4947 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8d701a8edccf76d62bb4424831e9c134dbd215e;p=apache check that we have a pool... git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1531971 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index cd8102fa59..a02af850e8 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -1498,7 +1498,11 @@ PROXY_DECLARE(char *) ap_proxy_worker_name(apr_pool_t *p, } if (!pool) { /* ugly */ - apr_pool_create(&pool, NULL); + apr_pool_create(&pool, ap_server_conf->process->pool); + if (!pool) { + /* something is better than nothing :) */ + return worker->s->name; + } } rv = apr_uri_parse(pool, worker->s->name, &uri); if (rv != APR_SUCCESS) {