------------------------------------------------------------ revno: 11744 revision-id: squid3@treenet.co.nz-20130108224018-5g5t67qy79rnboih parent: squid3@treenet.co.nz-20130101052914-r4lk62270w4sh498 author: Eygene Ryabinkin committer: Amos Jeffries branch nick: 3.2 timestamp: Tue 2013-01-08 15:40:18 -0700 message: Another piece of SQUID-2012:1 ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20130108224018-5g5t67qy79rnboih # target_branch: http://bzr.squid-cache.org/bzr/squid3/branches\ # /SQUID_3_2 # testament_sha1: 0e05b63f51b67c2f34ddd5955b266c06fca288db # timestamp: 2013-01-08 22:45:41 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/branches\ # /SQUID_3_2 # base_revision_id: squid3@treenet.co.nz-20130101052914-\ # r4lk62270w4sh498 # # Begin patch === modified file 'tools/cachemgr.cc' --- tools/cachemgr.cc 2013-01-01 05:29:14 +0000 +++ tools/cachemgr.cc 2013-01-08 22:40:18 +0000 @@ -992,7 +992,7 @@ 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;