From cc975860b35282081c6d771ed7cae24ef227754f Mon Sep 17 00:00:00 2001 From: Christophe Jaillet Date: Sun, 1 Oct 2023 16:28:31 +0000 Subject: [PATCH] Slightly optimize h2_mplx_c1_streams_do(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1912662 13f79535-47bb-0310-9956-ffa450edef68 --- modules/http2/h2_mplx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/http2/h2_mplx.c b/modules/http2/h2_mplx.c index 4637a5f66ef..9e15742767c 100644 --- a/modules/http2/h2_mplx.c +++ b/modules/http2/h2_mplx.c @@ -384,10 +384,11 @@ apr_status_t h2_mplx_c1_streams_do(h2_mplx *m, h2_mplx_stream_cb *cb, void *ctx) { stream_iter_ctx_t x; - H2_MPLX_ENTER(m); - x.cb = cb; x.ctx = ctx; + + H2_MPLX_ENTER(m); + h2_ihash_iter(m->streams, m_stream_iter_wrap, &x); H2_MPLX_LEAVE(m);