From: Graham Leggett Date: Wed, 5 Jan 2011 09:53:55 +0000 (+0000) Subject: Make sure we clone the table rather than copy it, to ensure that no keys X-Git-Tag: 2.3.11~276 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e215e4840203c3166bc56fad7c1797c0cfb83c9;p=thirdparty%2Fapache%2Fhttpd.git Make sure we clone the table rather than copy it, to ensure that no keys or values allocated from r->pool end up referenced in the backend request. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1055386 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c index 29b2f1b517b..5665169d133 100644 --- a/modules/proxy/mod_proxy_http.c +++ b/modules/proxy/mod_proxy_http.c @@ -1813,7 +1813,7 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r, * TE, so that they are preserved accordingly for * ap_http_filter to know where to end. */ - backend->r->headers_in = apr_table_copy(backend->r->pool, r->headers_out); + backend->r->headers_in = apr_table_clone(backend->r->pool, r->headers_out); /* * Restore Transfer-Encoding header from response if we saved * one before and there is none left. We need it for the