httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r350009 - /httpd/httpd/trunk/modules/proxy/proxy_util.c
Date Wed, 30 Nov 2005 18:40:08 GMT
Author: jim
Date: Wed Nov 30 10:40:05 2005
New Revision: 350009

URL: http://svn.apache.org/viewcvs?rev=350009&view=rev
Log:
Check that conn->hostname is valid before we do the string
comparison

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

Modified: httpd/httpd/trunk/modules/proxy/proxy_util.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/proxy/proxy_util.c?rev=350009&r1=350008&r2=350009&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/proxy_util.c (original)
+++ httpd/httpd/trunk/modules/proxy/proxy_util.c Wed Nov 30 10:40:05 2005
@@ -1834,6 +1834,7 @@
     if (!worker->is_address_reusable ||
          (r->connection->keepalives &&
          (r->proxyreq == PROXYREQ_PROXY || r->proxyreq == PROXYREQ_REVERSE) &&
+         (conn->hostname != NULL) &&
          (strcasecmp(conn->hostname, uri->hostname) != 0) ) ) {
         if (proxyname) {
             conn->hostname = apr_pstrdup(conn->pool, proxyname);



Mime
View raw message