httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r910081 - /httpd/httpd/trunk/modules/proxy/proxy_util.c
Date Sun, 14 Feb 2010 21:37:36 GMT
Author: rjung
Date: Sun Feb 14 21:37:36 2010
New Revision: 910081

URL: http://svn.apache.org/viewvc?rev=910081&view=rev
Log:
We need to copy the forward proxy data, because it
might be reused during later requests using the same
backend connection.

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

Modified: httpd/httpd/trunk/modules/proxy/proxy_util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/proxy_util.c?rev=910081&r1=910080&r2=910081&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/proxy_util.c (original)
+++ httpd/httpd/trunk/modules/proxy/proxy_util.c Sun Feb 14 21:37:36 2010
@@ -2133,7 +2133,7 @@
                 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 @@
                     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);
                 }
             }
         }



Mime
View raw message