From: Eduard Bagdasaryan Date: Tue, 20 Jul 2021 18:05:41 +0000 (+0300) Subject: Guarantee ERR_ZERO_SIZE_OBJECT in FwdState::reactToZeroSizeObject() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=38f87d0a90c4d9ff8b80fdad0faceae6e3037a33;p=thirdparty%2Fsquid.git Guarantee ERR_ZERO_SIZE_OBJECT in FwdState::reactToZeroSizeObject() --- diff --git a/src/FwdState.cc b/src/FwdState.cc index 994095c932..4e02a36ca7 100644 --- a/src/FwdState.cc +++ b/src/FwdState.cc @@ -483,6 +483,8 @@ FwdState::fail(ErrorState * errorState) void FwdState::reactToZeroSizeObject() { + assert(err->type == ERR_ZERO_SIZE_OBJECT); + if (pconnRace == racePossible) { debugs(17, 5, HERE << "pconn race happened"); pconnRace = raceHappened;