From: Chuck Murcko Date: Mon, 20 Nov 2000 18:10:19 +0000 (+0000) Subject: Restore Ryan's original intent in ap_proxy_doconnect() return value check X-Git-Tag: APACHE_2_0_ALPHA_8~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ac560d6d907aa57cbd3be9ed4bc9d24bb9054304;p=apache 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 --- 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); }