httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject svn commit: r1055386 - /httpd/httpd/trunk/modules/proxy/mod_proxy_http.c
Date Wed, 05 Jan 2011 09:53:56 GMT
Author: minfrin
Date: Wed Jan  5 09:53:55 2011
New Revision: 1055386

URL: http://svn.apache.org/viewvc?rev=1055386&view=rev
Log:
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.

Modified:
    httpd/httpd/trunk/modules/proxy/mod_proxy_http.c

Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_http.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_proxy_http.c?rev=1055386&r1=1055385&r2=1055386&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_http.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_http.c Wed Jan  5 09:53:55 2011
@@ -1813,7 +1813,7 @@ apr_status_t ap_proxy_http_process_respo
              * 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



Mime
View raw message