From: Joe Orton Date: Thu, 13 Aug 2026 16:02:11 +0000 (+0000) Subject: * modules/http/http_filters.c (ap_http_filter): Fix use-after-free X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=7582a6dbda0c1eaaab02267be375dfcd1a8ffe86;p=thirdparty%2Fapache%2Fhttpd.git * modules/http/http_filters.c (ap_http_filter): Fix use-after-free of a HEADERS bucket. Fixes: 4442201e616 (SVN r1899547, trunk-only) Assisted-by: Claude Opus 4.6 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1937112 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_filters.c b/modules/http/http_filters.c index 62bd889bdb..8170db9d6a 100644 --- a/modules/http/http_filters.c +++ b/modules/http/http_filters.c @@ -414,7 +414,7 @@ apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b, } apr_bucket_delete(e); } - if (APR_BUCKET_IS_EOS(e)) { + else if (APR_BUCKET_IS_EOS(e)) { ctx->at_eos = 1; if (!apr_is_empty_table(r->trailers_in)) { core_server_config *conf = ap_get_module_config(