From: Allan K. Edwards Date: Thu, 21 Dec 2000 01:44:28 +0000 (+0000) Subject: prevent crash when connection closed before complete request received X-Git-Tag: APACHE_2_0_BETA_CANDIDATE_1~361 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e3cf0931a306451ea4e5232647d2e6e5b826181d;p=apache 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 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index 079677d595..594559b133 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -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);