From: Chao Date: Mon, 30 Apr 2012 06:15:37 +0000 (-0600) Subject: Bug 3539: CONNECT server connection not closed correctly on errors X-Git-Tag: SQUID_3_1_20~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a112f0480ea261b10bd24db7a2b9dd10a9a59ab;p=thirdparty%2Fsquid.git Bug 3539: CONNECT server connection not closed correctly on errors --- diff --git a/src/tunnel.cc b/src/tunnel.cc index b39703e1e9..cc665e22ef 100644 --- a/src/tunnel.cc +++ b/src/tunnel.cc @@ -542,7 +542,7 @@ tunnelErrorComplete(int fdnotused, void *data, size_t sizenotused) if (!fd_closed(tunnelState->client.fd())) comm_close(tunnelState->client.fd()); - if (fd_closed(tunnelState->server.fd())) + if (!fd_closed(tunnelState->server.fd())) comm_close(tunnelState->server.fd()); cbdataInternalUnlock(tunnelState);