From: Eygene Ryabinkin Date: Tue, 8 Jan 2013 22:40:18 +0000 (-0700) Subject: Another piece of SQUID-2012:1 X-Git-Tag: SQUID_3_2_6~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bab4b7778eb9436d1e42933743a985c1056062eb;p=thirdparty%2Fsquid.git Another piece of SQUID-2012:1 --- diff --git a/tools/cachemgr.cc b/tools/cachemgr.cc index a53f3f0e98..50b405b394 100644 --- a/tools/cachemgr.cc +++ b/tools/cachemgr.cc @@ -992,7 +992,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;