Commit 8ed1aa53 authored by Greg Ames's avatar Greg Ames
Browse files

return the actual number of bytes read when we're in "read a line" mode and it

looks like the line may never end.

This lets ap_getline determine whether there's excessive bytes or not,
depending on the size of its caller's buffers.  If the buffer can accomodate
more bytes, ap_getline will continue to read.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91713 13f79535-47bb-0310-9956-ffa450edef68
parent dcb1ba8f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2939,7 +2939,7 @@ static int core_input_filter(ap_filter_t *f, apr_bucket_brigade *b, ap_input_mod
        /* We didn't find an APR_ASCII_LF within the predefined maximum
        /* We didn't find an APR_ASCII_LF within the predefined maximum
         * line length. */
         * line length. */
        if (len >= HUGE_STRING_LEN) {
        if (len >= HUGE_STRING_LEN) {
            return -1;
            return len;
        }
        }
    }
    }