From 70b33b765e3b8f89cb0133baee65ad44f28bef52 Mon Sep 17 00:00:00 2001 From: Paul Querna Date: Tue, 21 Aug 2007 17:27:31 +0000 Subject: [PATCH] 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 --- server/core_filters.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.50.1