diff options
author | Eric Covener <covener@apache.org> | 2024-06-24 19:18:11 +0200 |
---|---|---|
committer | Eric Covener <covener@apache.org> | 2024-06-24 19:18:11 +0200 |
commit | ca3f1703e2f6455871cbcffd889ff0f370de1bcb (patch) | |
tree | 3cc871292e395a6137ded4654eca3a5aad5c0e42 /modules/http2/h2_c2.c | |
parent | fr doc rebuild. (diff) | |
download | apache2-ca3f1703e2f6455871cbcffd889ff0f370de1bcb.tar.xz apache2-ca3f1703e2f6455871cbcffd889ff0f370de1bcb.zip |
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
Diffstat (limited to '')
-rw-r--r-- | modules/http2/h2_c2.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/http2/h2_c2.c b/modules/http2/h2_c2.c index 51e921310f..5a9019aa0c 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) { |