From: hno <> Date: Mon, 27 Aug 2001 04:17:23 +0000 (+0000) Subject: Don't log "null" SSL errors, as seen if the client aborts the connection X-Git-Tag: SQUID_3_0_PRE1~1426 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4a80ff087731032025c785654d03b9d095e98a0;p=thirdparty%2Fsquid.git Don't log "null" SSL errors, as seen if the client aborts the connection before sending a SSL handshake --- diff --git a/src/client_side.cc b/src/client_side.cc index d9d5b5f6fd..0bc7097b96 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -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; }