From: Jim Jagielski Date: Wed, 30 Nov 2005 18:40:05 +0000 (+0000) Subject: Check that conn->hostname is valid before we do the string X-Git-Tag: 2.3.0~2706 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5182309487f7c878b1ea7668231cbea3143524e;p=thirdparty%2Fapache%2Fhttpd.git Check that conn->hostname is valid before we do the string comparison git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@350009 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index 8d49f82f2c4..dd7e0b83c38 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -1834,6 +1834,7 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r, 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);