summaryrefslogtreecommitdiffstats
path: root/modules/http2/h2_c2.c
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2024-06-24 19:18:11 +0200
committerEric Covener <covener@apache.org>2024-06-24 19:18:11 +0200
commitca3f1703e2f6455871cbcffd889ff0f370de1bcb (patch)
tree3cc871292e395a6137ded4654eca3a5aad5c0e42 /modules/http2/h2_c2.c
parentfr doc rebuild. (diff)
downloadapache2-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.c7
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) {