summaryrefslogtreecommitdiffstats
path: root/modules/proxy
diff options
context:
space:
mode:
authorRainer Jung <rjung@apache.org>2010-02-14 22:37:36 +0100
committerRainer Jung <rjung@apache.org>2010-02-14 22:37:36 +0100
commit92590ca5cd0b59888a34e0efa91c6274af53998c (patch)
treed264c83bcb956829a43b09400cd6e48e141e8b10 /modules/proxy
parentLimit sscanf format to the number of chars actually (diff)
downloadapache2-92590ca5cd0b59888a34e0efa91c6274af53998c.tar.xz
apache2-92590ca5cd0b59888a34e0efa91c6274af53998c.zip
We need to copy the forward proxy data, because it
might be reused during later requests using the same backend connection. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@910081 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/proxy')
-rw-r--r--modules/proxy/proxy_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c
index 5097a4042a..ca44d073f6 100644
--- a/modules/proxy/proxy_util.c
+++ b/modules/proxy/proxy_util.c
@@ -2133,7 +2133,7 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r,
forward_info *forward = apr_pcalloc(conn->pool, sizeof(forward_info));
conn->forward = forward;
forward->use_http_connect = 1;
- forward->target_host = uri->hostname;
+ forward->target_host = apr_pstrdup(conn->pool, uri->hostname);
forward->target_port = uri->port;
/* Do we want to pass Proxy-Authorization along?
* If we haven't used it, then YES
@@ -2146,7 +2146,7 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r,
proxy_auth[0] != '\0' &&
r->user == NULL && /* we haven't yet authenticated */
apr_table_get(r->subprocess_env, "Proxy-Chain-Auth")) {
- forward->proxy_auth = proxy_auth;
+ forward->proxy_auth = apr_pstrdup(conn->pool, proxy_auth);
}
}
}