]> granicus.if.org Git - apache/commitdiff
Restore Ryan's original intent in ap_proxy_doconnect() return value check
authorChuck Murcko <chuck@apache.org>
Mon, 20 Nov 2000 18:10:19 +0000 (18:10 +0000)
committerChuck Murcko <chuck@apache.org>
Mon, 20 Nov 2000 18:10:19 +0000 (18:10 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87034 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_util.c

index a2e0263cc94976cd98a518203c91c631657ca2b6..e0b0fce6e547f8559ce367e783b775eb1fd5888e 100644 (file)
@@ -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);
     }