Skip to content

Commit 7582a6d

Browse files
committed
* modules/http/http_filters.c (ap_http_filter): Fix use-after-free
of a HEADERS bucket. Fixes: 4442201 (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
1 parent 37d7311 commit 7582a6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/http/http_filters.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b,
414414
}
415415
apr_bucket_delete(e);
416416
}
417-
if (APR_BUCKET_IS_EOS(e)) {
417+
else if (APR_BUCKET_IS_EOS(e)) {
418418
ctx->at_eos = 1;
419419
if (!apr_is_empty_table(r->trailers_in)) {
420420
core_server_config *conf = ap_get_module_config(

0 commit comments

Comments
 (0)