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

index 7a9d0496e2d26c83628099872480072a3797eb24..83d532c370e24805dae9eae29344b9b5f45ef99b 100644 (file)
@@ -955,7 +955,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;