From 5283e32c823c36f7904691441c1241edde8ca7b1 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 28 Feb 2003 10:53:49 +0000 Subject: Before the IDLE patch. svn path=/trunk/; revision=3792 --- transact.c | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) (limited to 'transact.c') diff --git a/transact.c b/transact.c index f419828e..6fbe1879 100644 --- a/transact.c +++ b/transact.c @@ -864,18 +864,6 @@ int readheaders(int sock, } } - /* - * We want to detect this early in case there are so few headers that the - * dispatch logic barfs. - */ - if (!headers_ok) - { - if (outlevel > O_SILENT) - report(stdout, - GT_("message delimiter found while scanning headers\n")); - return(PS_TRUNCATED); - } - /* * Hack time. If the first line of the message was blank, with no headers * (this happens occasionally due to bad gatewaying software) cons up @@ -1255,7 +1243,15 @@ int readheaders(int sock, *cp++ = '\0'; stuffline(ctl, buf); - return(headers_ok ? PS_SUCCESS : PS_TRUNCATED); + if (!headers_ok) + { + if (outlevel > O_SILENT) + report(stdout, + GT_("message delimiter found while scanning headers\n")); + return(PS_TRUNCATED); + } + + return(PS_SUCCESS); } int readbody(int sock, struct query *ctl, flag forward, int len) -- cgit v1.2.3