From 8d7e46c785559eb0866c38a92addff442013b181 Mon Sep 17 00:00:00 2001 From: robertc <> Date: Sat, 26 Oct 2002 10:51:01 +0000 Subject: [PATCH] fix incorrect underrun detection --- src/client_side_reply.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.3