From 298931d17722a8dd6eb522e7c99ceb741ceabe8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Fri, 28 Jan 2022 21:41:06 +0100 Subject: [PATCH] MINOR: quic: Do not try to treat 0-RTT packets without started mux We proceed the same was as for 1-RTT packets: we do not try to treat them until the mux is started. --- src/xprt_quic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xprt_quic.c b/src/xprt_quic.c index d7e680526..6537f0497 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -3204,7 +3204,8 @@ static int qc_qel_may_rm_hp(struct quic_conn *qc, struct quic_enc_level *qel) return 0; /* check if the connection layer is ready before using app level */ - if (tel == QUIC_TLS_ENC_LEVEL_APP && qc->mux_state != QC_MUX_READY) + if ((tel == QUIC_TLS_ENC_LEVEL_APP || tel == QUIC_TLS_ENC_LEVEL_EARLY_DATA) && + qc->mux_state != QC_MUX_READY) return 0; return 1;