From 9e215e4840203c3166bc56fad7c1797c0cfb83c9 Mon Sep 17 00:00:00 2001 From: Graham Leggett Date: Wed, 5 Jan 2011 09:53:55 +0000 Subject: [PATCH] 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 --- modules/proxy/mod_proxy_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c index 29b2f1b517..5665169d13 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