Commit 67830e80 authored by Ruediger Pluem's avatar Ruediger Pluem
Browse files

* Call ap_proxy_http_cleanup after ap_log_rerror because it resets

  backend->hostname to NULL.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@366279 13f79535-47bb-0310-9956-ffa450edef68
parent 6731882d
Loading
Loading
Loading
Loading
+1 −1
Changes for modules/proxy/mod_proxy_http.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -1221,10 +1221,10 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r,
            len = ap_getline(buffer, sizeof(buffer), rp, 0);
        }
        if (len <= 0) {
            ap_proxy_http_cleanup(NULL, r, backend);
            ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
                          "proxy: error reading status line from remote "
                          "server %s", backend->hostname);
            ap_proxy_http_cleanup(NULL, r, backend);
            return ap_proxyerror(r, HTTP_BAD_GATEWAY,
                                 "Error reading from remote server");
        }