]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_http2: early exit if bb is null
authorEric Covener <covener@apache.org>
Mon, 24 Jun 2024 17:18:11 +0000 (17:18 +0000)
committerEric Covener <covener@apache.org>
Mon, 24 Jun 2024 17:18:11 +0000 (17:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1918548 13f79535-47bb-0310-9956-ffa450edef68

modules/http2/h2_c2.c

index 51e921310f9d2870d30544fec0c5a4f41bf40708..5a9019aa0cfba170a8b829dd2ea6191f185c8077 100644 (file)
@@ -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) {