]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 3273: assertion comm.cc:775: Comm::IsConnOpen(conn)
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 21 Jul 2011 05:07:42 +0000 (17:07 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 21 Jul 2011 05:07:42 +0000 (17:07 +1200)
src/CommCalls.cc

index cad43d54106957ca9ec6e152d67c647e5ef0d6d3..181880a974e295d8f833e6d8124492b235bc15a9 100644 (file)
@@ -76,7 +76,7 @@ CommIoCbParams::syncWithComm()
 {
     // change parameters if the call was scheduled before comm_close but
     // is being fired after comm_close
-    if (conn->fd >= 0 && fd_table[conn->fd].closing() && flag != COMM_ERR_CLOSING) {
+    if ((conn->fd < 0 || fd_table[conn->fd].closing()) && flag != COMM_ERR_CLOSING) {
         debugs(5, 3, HERE << "converting late call to COMM_ERR_CLOSING: " << conn);
         flag = COMM_ERR_CLOSING;
     }