From dd68355433c6579a931c38c077a2be07a38e09ea Mon Sep 17 00:00:00 2001 From: Greg Ames Date: Wed, 31 Oct 2001 22:55:43 +0000 Subject: [PATCH] whoops! can't use the return code to pass the length up the filter chain. with this and a request line that goes on forever, I now get: [Wed Oct 31 17:45:45 2001] [error] [client 127.0.0.1] request failed: URI too long ...in the error log, and a 414 in the access log. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91715 13f79535-47bb-0310-9956-ffa450edef68 --- server/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/core.c b/server/core.c index 36c207079a..c97c72864d 100644 --- a/server/core.c +++ b/server/core.c @@ -2938,8 +2938,8 @@ static int core_input_filter(ap_filter_t *f, apr_bucket_brigade *b, ap_input_mod *readbytes += len; /* We didn't find an APR_ASCII_LF within the predefined maximum * line length. */ - if (len >= HUGE_STRING_LEN) { - return len; + if (*readbytes >= HUGE_STRING_LEN) { + break; } } -- 2.40.0