From ac560d6d907aa57cbd3be9ed4bc9d24bb9054304 Mon Sep 17 00:00:00 2001 From: Chuck Murcko Date: Mon, 20 Nov 2000 18:10:19 +0000 Subject: [PATCH] Restore Ryan's original intent in ap_proxy_doconnect() return value check git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87034 13f79535-47bb-0310-9956-ffa450edef68 --- modules/proxy/proxy_util.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index a2e0263cc9..e0b0fce6e5 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -1114,8 +1114,7 @@ apr_status_t ap_proxy_doconnect(apr_socket_t *sock, char *host, apr_uint32_t por if (rv == APR_SUCCESS) { rv = apr_connect(sock, destsa); } - if (rv != APR_SUCCESS) - { + else if (rv != APR_SUCCESS) { ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, "proxy connect to %s port %d failed", host, port); } -- 2.40.0