From: robertc <> Date: Sat, 26 Oct 2002 10:51:01 +0000 (+0000) Subject: fix incorrect underrun detection X-Git-Tag: SQUID_3_0_PRE1~559 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d7e46c785559eb0866c38a92addff442013b181;p=thirdparty%2Fsquid.git fix incorrect underrun detection --- diff --git a/src/client_side_reply.cc b/src/client_side_reply.cc index 0c1ff3f30a..2bb3c84402 100644 --- a/src/client_side_reply.cc +++ b/src/client_side_reply.cc @@ -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; }