From: wessels <> Date: Tue, 31 Mar 1998 13:06:33 +0000 (+0000) Subject: fix end-of-header detection X-Git-Tag: SQUID_3_0_PRE1~3681 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e8731adfbccfef49ff7d0c7aac73d47bf3e75e6;p=thirdparty%2Fsquid.git fix end-of-header detection --- diff --git a/src/client_side.cc b/src/client_side.cc index e0f93739b9..c99db67c52 100644 --- a/src/client_side.cc +++ b/src/client_side.cc @@ -1,6 +1,6 @@ /* - * $Id: client_side.cc,v 1.242 1998/03/31 05:37:37 wessels Exp $ + * $Id: client_side.cc,v 1.243 1998/03/31 06:06:33 wessels Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -830,7 +830,7 @@ clientBuildReplyHeader(clientHttpRequest * http, if (0 != strncmp(hdr_in, "HTTP/", 5)) return 0; hdr_len = headersEnd(hdr_in, hdr_in_sz); - if (hdr_len < 0) { + if (0 == hdr_len) { debug(33, 3) ("clientBuildReplyHeader: DIDN'T FIND END-OF-HEADERS\n"); return 0; }