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

index a53f3f0e98caf9b135d740462f9fc28a4cc3c7f8..50b405b394b0f820baa0aa69f714db12d5a9e9bb 100644 (file)
@@ -992,7 +992,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;