From 89a2ceb1fba7ea59589cb63df143ac31804a0306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Wed, 20 Apr 2022 15:59:07 +0200 Subject: [PATCH] BUG/MEDIUM: quic: Possible crash with released mux It is possible the xprt layer have to process retransmitted STREAM frames after the mux was released. In this case, there is no need to try to wake it up. --- src/xprt_quic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xprt_quic.c b/src/xprt_quic.c index 21abd8557..c1a7be1a9 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -1544,7 +1544,7 @@ static inline void qc_treat_acked_tx_frm(struct quic_conn *qc, pool_free(pool_head_quic_frame, frm); } - if (stream_acked) { + if (stream_acked && qc->mux_state == QC_MUX_READY) { struct qcc *qcc = qc->qcc; if (qcc->subs && qcc->subs->events & SUB_RETRY_SEND) {