Commit b8da76ac authored by Jim Jagielski's avatar Jim Jagielski
Browse files

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
parent efe6d667
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);