]> granicus.if.org Git - apache/commitdiff
Make sure we clone the table rather than copy it, to ensure that no keys
authorGraham Leggett <minfrin@apache.org>
Wed, 5 Jan 2011 09:53:55 +0000 (09:53 +0000)
committerGraham Leggett <minfrin@apache.org>
Wed, 5 Jan 2011 09:53:55 +0000 (09:53 +0000)
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

index 29b2f1b517b62889ea7b2dfbf580bc08b1eb2247..5665169d133ed4a5ea1accdd3bd17daae1096b87 100644 (file)
@@ -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