]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3539: CONNECT server connection not closed correctly on errors
authorChao <chao_83@126.com>
Mon, 30 Apr 2012 06:15:37 +0000 (00:15 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 30 Apr 2012 06:15:37 +0000 (00:15 -0600)
src/tunnel.cc

index b39703e1e9e2346a0db1567e277f065292adbd8d..cc665e22ef00299412ee7212603473016c07c896 100644 (file)
@@ -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);