You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2006/01/05 22:02:39 UTC
svn commit: r366279 - /httpd/httpd/trunk/modules/proxy/mod_proxy_http.c
Author: rpluem
Date: Thu Jan 5 13:02:36 2006
New Revision: 366279
URL: http://svn.apache.org/viewcvs?rev=366279&view=rev
Log:
* Call ap_proxy_http_cleanup after ap_log_rerror because it resets
backend->hostname to NULL.
Modified:
httpd/httpd/trunk/modules/proxy/mod_proxy_http.c
Modified: httpd/httpd/trunk/modules/proxy/mod_proxy_http.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/proxy/mod_proxy_http.c?rev=366279&r1=366278&r2=366279&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_proxy_http.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_proxy_http.c Thu Jan 5 13:02:36 2006
@@ -1221,10 +1221,10 @@
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");
}