From: Eygene Ryabinkin Date: Tue, 8 Jan 2013 22:39:29 +0000 (-0700) Subject: Another piece of SQUID-2012:1 X-Git-Tag: SQUID_3_4_0_1~394 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bc67ec8842f604ac1051d81bd0b721c970b9ed9;p=thirdparty%2Fsquid.git Another piece of SQUID-2012:1 --- diff --git a/tools/cachemgr.cc b/tools/cachemgr.cc index 4c998d2d9f..a5d700f723 100644 --- a/tools/cachemgr.cc +++ b/tools/cachemgr.cc @@ -990,7 +990,7 @@ read_post_request(void) len -= readLen; // purge the remainder of the request entity - while (len > 0) { + while (len > 0 && readLen) { char temp[65535]; readLen = fread(temp, 1, 65535, stdin); len -= readLen;