]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
fix incorrect underrun detection
authorrobertc <>
Sat, 26 Oct 2002 10:51:01 +0000 (10:51 +0000)
committerrobertc <>
Sat, 26 Oct 2002 10:51:01 +0000 (10:51 +0000)
src/client_side_reply.cc

index 0c1ff3f30aaa24164a49bcd0663d13cf2da1c4db..2bb3c84402131b82d44375b1f650d1a66eed98a8 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side_reply.cc,v 1.22 2002/10/26 02:42:31 robertc Exp $
+ * $Id: client_side_reply.cc,v 1.23 2002/10/26 04:51:01 robertc Exp $
  *
  * DEBUG: section 88    Client-side Reply Routines
  * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
@@ -1064,7 +1064,7 @@ clientGotNotEnough(clientHttpRequest const *http)
     httpReplyBodySize(http->request->method, http->entry->mem_obj->reply);
     int hs = http->entry->mem_obj->reply->hdr_sz;
     assert(cl >= 0);
-    if (http->out.offset < cl + hs)
+    if (http->out.offset < cl)
        return 1;
     return 0;
 }