From e3cf0931a306451ea4e5232647d2e6e5b826181d Mon Sep 17 00:00:00 2001 From: "Allan K. Edwards" Date: Thu, 21 Dec 2000 01:44:28 +0000 Subject: [PATCH] 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 --- modules/http/http_protocol.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.50.1