From: Eric Covener Date: Mon, 24 Jun 2024 17:51:42 +0000 (+0000) Subject: Merge r1918548 from trunk: X-Git-Tag: 2.4.60-rc1-candidate~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62aa64e5aea21dd969db97aded4443c98c0735ac;p=thirdparty%2Fapache%2Fhttpd.git Merge r1918548 from trunk: mod_http2: early exit if bb is null git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1918557 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http2/h2_c2.c b/modules/http2/h2_c2.c index a9552009442..c65a521ab84 100644 --- a/modules/http2/h2_c2.c +++ b/modules/http2/h2_c2.c @@ -370,6 +370,13 @@ static apr_status_t h2_c2_filter_out(ap_filter_t* f, apr_bucket_brigade* bb) h2_conn_ctx_t *conn_ctx = h2_conn_ctx_get(f->c); apr_status_t rv; + 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) {