]> granicus.if.org Git - apache/commitdiff
whoops! can't use the return code to pass the length up the filter chain.
authorGreg Ames <gregames@apache.org>
Wed, 31 Oct 2001 22:55:43 +0000 (22:55 +0000)
committerGreg Ames <gregames@apache.org>
Wed, 31 Oct 2001 22:55:43 +0000 (22:55 +0000)
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

index 36c207079afd34a07eeb5c4218d0a58ba743dd35..c97c72864dc8e8090841d9e3a6795b638a9c7024 100644 (file)
@@ -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;
         }
     }