From: Eric Covener Date: Mon, 24 Jun 2024 17:18:11 +0000 (+0000) Subject: mod_http2: early exit if bb is null X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca3f1703e2f6455871cbcffd889ff0f370de1bcb;p=thirdparty%2Fapache%2Fhttpd.git 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 --- 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) {