]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Merge r1918548 from trunk:
authorEric Covener <covener@apache.org>
Mon, 24 Jun 2024 17:51:42 +0000 (17:51 +0000)
committerEric Covener <covener@apache.org>
Mon, 24 Jun 2024 17:51:42 +0000 (17:51 +0000)
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

modules/http2/h2_c2.c

index a955200944214de8f4bbead817b9e15cb66c9bcc..c65a521ab84de1179a8f4e28879ed4688ac23d3e 100644 (file)
@@ -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) {