From: Eygene Ryabinkin Date: Tue, 8 Jan 2013 22:39:52 +0000 (-0700) Subject: Another piece of SQUID-2012:1 X-Git-Tag: SQUID_3_3_0_3~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61d8c083e3b1b998d3d9d914a1d01b11a76a5e35;p=thirdparty%2Fsquid.git Another piece of SQUID-2012:1 --- diff --git a/tools/cachemgr.cc b/tools/cachemgr.cc index 9b4449c59b..d560d677d1 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;