From 4aa7b26df006cdcb469dfbf811c00698d803cdf6 Mon Sep 17 00:00:00 2001 From: Joshua Rogers Date: Sat, 11 Oct 2025 08:09:43 +0800 Subject: [PATCH] quic: avoid partial update in ossl_quic_bind_channel MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Joshua Rogers Reviewed-by: Saša Nedvědický Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/28848) --- ssl/quic/quic_channel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ssl/quic/quic_channel.c b/ssl/quic/quic_channel.c index 7679ec8790e..c7c60d97e9b 100644 --- a/ssl/quic/quic_channel.c +++ b/ssl/quic/quic_channel.c @@ -3815,10 +3815,11 @@ int ossl_quic_bind_channel(QUIC_CHANNEL *ch, const BIO_ADDR *peer, if (!ossl_assert(ch->state == QUIC_CHANNEL_STATE_IDLE && ch->is_server)) return 0; - ch->cur_local_cid = *peer_dcid; if (!ossl_quic_lcidm_bind_channel(ch->lcidm, ch, peer_dcid)) return 0; + ch->cur_local_cid = *peer_dcid; + /* * peer_odcid <=> is initial dst conn id chosen by peer in its * first initial packet we received without token. -- 2.47.3