From ca3f1703e2f6455871cbcffd889ff0f370de1bcb Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Mon, 24 Jun 2024 17:18:11 +0000 Subject: [PATCH] mod_http2: early exit if bb is null git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918548 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http2/h2_c2.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/http2/h2_c2.c b/modules/http2/h2_c2.c index 51e921310f9..5a9019aa0cf 100644 --- a/modules/http2/h2_c2.c +++ b/modules/http2/h2_c2.c @@ -377,6 +377,13 @@ static apr_status_t h2_c2_filter_out(ap_filter_t* f, apr_bucket_brigade* bb) return APR_SUCCESS; } + if (bb == NULL) { +#if !AP_MODULE_MAGIC_AT_LEAST(20180720, 1) + f->c->data_in_output_filters = 0; +#endif + return APR_SUCCESS; + } + ap_assert(conn_ctx); #if AP_HAS_RESPONSE_BUCKETS if (!conn_ctx->has_final_response) { -- 2.47.2