From e8d701a8edccf76d62bb4424831e9c134dbd215e Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Mon, 14 Oct 2013 16:38:52 +0000 Subject: [PATCH] check that we have a pool... git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1531971 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/proxy_util.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) { -- 2.40.0