From: Paul Querna Date: Tue, 21 Aug 2007 17:27:31 +0000 (+0000) Subject: Only cleanup new_bb, if it isn't NULL, fixing a crash in the event MPM when write... X-Git-Tag: 2.3.0~1581 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70b33b765e3b8f89cb0133baee65ad44f28bef52;p=apache Only cleanup new_bb, if it isn't NULL, fixing a crash in the event MPM when write compeltion is active and a client disconnects. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@568202 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core_filters.c b/server/core_filters.c index f06b976cd1..5ea2c38870 100644 --- a/server/core_filters.c +++ b/server/core_filters.c @@ -354,7 +354,9 @@ apr_status_t ap_core_output_filter(ap_filter_t *f, apr_bucket_brigade *new_bb) /* Fail quickly if the connection has already been aborted. */ if (c->aborted) { - apr_brigade_cleanup(new_bb); + if (new_bb != NULL) { + apr_brigade_cleanup(new_bb); + } return APR_ECONNABORTED; }