]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Don't log "null" SSL errors, as seen if the client aborts the connection
authorhno <>
Mon, 27 Aug 2001 04:17:23 +0000 (04:17 +0000)
committerhno <>
Mon, 27 Aug 2001 04:17:23 +0000 (04:17 +0000)
before sending a SSL handshake

src/client_side.cc

index d9d5b5f6fd8b409866c9e6bf3cc0e43ff4c321fa..0bc7097b965292ffc3500d7e4b16f2ff880461a7 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.543 2001/08/24 15:02:43 hno Exp $
+ * $Id: client_side.cc,v 1.544 2001/08/26 22:17:23 hno Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -3208,8 +3208,10 @@ clientNegotiateSSL(int fd, void *data)
            return;
        }
        ret = ERR_get_error();
-       debug(81, 1) ("clientNegotiateSSL: Error negotiating SSL connection on FD %d: %s\n",
-           fd, ERR_error_string(ret, NULL));
+       if (ret) {
+           debug(81, 1) ("clientNegotiateSSL: Error negotiating SSL connection on FD %d: %s\n",
+               fd, ERR_error_string(ret, NULL));
+       }
        comm_close(fd);
        return;
     }