Commit a46989a2 authored by Allan K. Edwards's avatar Allan K. Edwards
Browse files

prevent crash when connection closed before complete request received


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87478 13f79535-47bb-0310-9956-ffa450edef68
parent 77dd4d40
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -969,6 +969,10 @@ apr_status_t ap_http_filter(ap_filter_t *f, ap_bucket_brigade *b, ap_input_mode_
        const char *str;
        apr_size_t length;

        if (AP_BRIGADE_EMPTY(ctx->b)) {
            return APR_EOF;
        }

        e = AP_BRIGADE_FIRST(ctx->b);
        while (e->length == 0) {
            AP_BUCKET_REMOVE(e);