From: Lubos Uhliarik Date: Mon, 13 Jun 2016 12:50:25 +0000 (+1200) Subject: Bug 4291: workaround DeferredReadManager::popHead segfault during shutdown X-Git-Tag: SQUID_4_0_12~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3dd0769994071c9c29e2cb5532a62436d6465be7;p=thirdparty%2Fsquid.git Bug 4291: workaround DeferredReadManager::popHead segfault during shutdown --- diff --git a/src/comm.cc b/src/comm.cc index 8feeede537..b6ecf05d5b 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1774,7 +1774,7 @@ DeferredReadManager::popHead(CbDataListContainer &deferredReads) // amount of time. We must re-validate that it is active and usable. // If the connection has been closed already. Cancel this read. - if (!Comm::IsConnOpen(read.theRead.conn)) { + if (!fd_table || !Comm::IsConnOpen(read.theRead.conn)) { if (read.closer != NULL) { read.closer->cancel("Connection closed before."); read.closer = NULL;