httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r366279 - /httpd/httpd/trunk/modules/proxy/mod_proxy_http.c
Date Thu, 05 Jan 2006 21:02:39 GMT
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");
         }



Mime
View raw message