]> granicus.if.org Git - apache/commitdiff
mod_proxy_http: follow up to r1656259.
authorYann Ylavic <ylavic@apache.org>
Mon, 11 May 2015 15:48:58 +0000 (15:48 +0000)
committerYann Ylavic <ylavic@apache.org>
Mon, 11 May 2015 15:48:58 +0000 (15:48 +0000)
The proxy connection may be NULL during prefetch, don't try to dereference it!
Still origin->keepalive will be set according to p_conn->close by the caller
(proxy_http_handler).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1678771 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy_http.c

index b272153743db7e1113e7720c4d6879308b10a567..0f4e0167d5ccb515fdb321cee82128d4e74dd5ed 100644 (file)
@@ -747,7 +747,6 @@ static int ap_proxy_http_prefetch(apr_pool_t *p, request_rec *r,
     apr_off_t bytes;
     int force10, rv;
     apr_read_type_e block;
-    conn_rec *origin = p_conn->connection;
 
     if (apr_table_get(r->subprocess_env, "force-proxy-request-1.0")) {
         if (r->expecting_100) {
@@ -805,7 +804,6 @@ static int ap_proxy_http_prefetch(apr_pool_t *p, request_rec *r,
                       "chunked body with Content-Length (C-L ignored)",
                       c->client_ip, c->remote_host ? c->remote_host: "");
         *old_cl_val = NULL;
-        origin->keepalive = AP_CONN_CLOSE;
         p_conn->close = 1;
     }