]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Another piece of SQUID-2012:1
authorEygene Ryabinkin <rea@freebsd.org>
Tue, 8 Jan 2013 22:39:29 +0000 (15:39 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 8 Jan 2013 22:39:29 +0000 (15:39 -0700)
tools/cachemgr.cc

index 4c998d2d9f9a4aff096dce9be3ea17a73b4f47af..a5d700f723883dc19c3df041ac5c3f211ed16553 100644 (file)
@@ -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;