Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28848)
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.