------------------------------------------------------------ revno: 12447 revision-id: squid3@treenet.co.nz-20130108223952-0jvvrjn0yonrvokf parent: squid3@treenet.co.nz-20130102101245-m34bpngdr09sql62 author: Eygene Ryabinkin committer: Amos Jeffries branch nick: 3.3 timestamp: Tue 2013-01-08 15:39:52 -0700 message: Another piece of SQUID-2012:1 ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20130108223952-0jvvrjn0yonrvokf # target_branch: http://bzr.squid-cache.org/bzr/squid3/3.3 # testament_sha1: 76a6e6cd605b2d4bd95fb8e7b3ac6d124e658443 # timestamp: 2013-01-08 22:44:16 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/3.3 # base_revision_id: squid3@treenet.co.nz-20130102101245-\ # m34bpngdr09sql62 # # Begin patch === modified file 'tools/cachemgr.cc' --- tools/cachemgr.cc 2013-01-01 05:28:45 +0000 +++ tools/cachemgr.cc 2013-01-08 22:39:52 +0000 @@ -990,7 +990,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;