]> 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:52 +0000 (15:39 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 8 Jan 2013 22:39:52 +0000 (15:39 -0700)
tools/cachemgr.cc

index 9b4449c59b3ec6460101d2ad203d1c986384e3b2..d560d677d1c1e7c6c8e0b9ad9c31a7fc8b21c34e 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;