]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* modules/http/http_filters.c (ap_http_filter): Fix use-after-free
authorJoe Orton <jorton@apache.org>
Thu, 13 Aug 2026 16:02:11 +0000 (16:02 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 13 Aug 2026 16:02:11 +0000 (16:02 +0000)
  of a HEADERS bucket.

Fixes: 4442201e616 (SVN r1899547, trunk-only)
Assisted-by: Claude Opus 4.6 <noreply@anthropic.com>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1937112 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_filters.c

index 62bd889bdbb83fdcd45d83dab3c0373e11d7f352..8170db9d6ac3dfc9879da0e11612d3011429cd82 100644 (file)
@@ -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(