You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2024/06/24 17:51:42 UTC
svn commit: r1918557 - in /httpd/httpd/branches/2.4.x: ./ modules/http2/h2_c2.c
Author: covener
Date: Mon Jun 24 17:51:42 2024
New Revision: 1918557
URL: http://svn.apache.org/viewvc?rev=1918557&view=rev
Log:
Merge r1918548 from trunk:
mod_http2: early exit if bb is null
Modified:
httpd/httpd/branches/2.4.x/ (props changed)
httpd/httpd/branches/2.4.x/modules/http2/h2_c2.c
Propchange: httpd/httpd/branches/2.4.x/
------------------------------------------------------------------------------
Merged /httpd/httpd/trunk:r1918548
Modified: httpd/httpd/branches/2.4.x/modules/http2/h2_c2.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/modules/http2/h2_c2.c?rev=1918557&r1=1918556&r2=1918557&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/modules/http2/h2_c2.c (original)
+++ httpd/httpd/branches/2.4.x/modules/http2/h2_c2.c Mon Jun 24 17:51:42 2024
@@ -370,6 +370,13 @@ static apr_status_t h2_c2_filter_out(ap_
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) {