From 6b17fc25961f58d2f26168bc6ff1fad2ba82f579 Mon Sep 17 00:00:00 2001 From: Ruediger Pluem Date: Thu, 5 Jan 2006 21:02:36 +0000 Subject: [PATCH] * 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 --- modules/proxy/mod_proxy_http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/proxy/mod_proxy_http.c b/modules/proxy/mod_proxy_http.c index b19ab5e996..40455fb85b 100644 --- a/modules/proxy/mod_proxy_http.c +++ b/modules/proxy/mod_proxy_http.c @@ -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"); } -- 2.40.0