From: Eygene Ryabinkin Date: Tue, 8 Jan 2013 23:11:51 +0000 (-0700) Subject: Another piece of SQUID-2012:1 X-Git-Tag: SQUID_3_1_23~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcb3372c06c7e47c7c2d1ed0fae93330fa825a8f;p=thirdparty%2Fsquid.git Another piece of SQUID-2012:1 --- diff --git a/tools/cachemgr.cc b/tools/cachemgr.cc index 7a9d0496e2..83d532c370 100644 --- a/tools/cachemgr.cc +++ b/tools/cachemgr.cc @@ -955,7 +955,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;