]> granicus.if.org Git - apache/commitdiff
* Call ap_proxy_http_cleanup after ap_log_rerror because it resets
authorRuediger Pluem <rpluem@apache.org>
Thu, 5 Jan 2006 21:02:36 +0000 (21:02 +0000)
committerRuediger Pluem <rpluem@apache.org>
Thu, 5 Jan 2006 21:02:36 +0000 (21:02 +0000)
  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

index b19ab5e9966906585b3ecdcd4e8076ef268b89d0..40455fb85ba86497ee545e82c5822531a052b044 100644 (file)
@@ -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");
         }