]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: quic-be: install the peer CID only from an accepted Initial
authordeanliang06 <dextersquad4@gmail.com>
Mon, 30 Nov 2026 14:31:40 +0000 (09:31 -0500)
committerFrederic Lecaille <flecaille@haproxy.com>
Mon, 30 Nov 2026 14:52:14 +0000 (15:52 +0100)
commit3ce902c740171c54600746d73fbfa8b0656a8f0f
treec3ce93fb8f6e17440aefabc798f8921ec7cdd96b
parent1ed3663c43f36d05071a3dbb1f2274feb3fcd68a
BUG/MINOR: quic-be: install the peer CID only from an accepted Initial

On backend QUIC connections, parsing an Initial header sets the peer
CID before the packet is validated. If that packet is discarded, a
later valid Initial cannot replace the CID. If the CIDs differ, the
backend handshake can fail.

Install the peer CID only after the Initial has been decrypted and its
frames have been parsed. Preserve the existing Retry handling.

This should be backported up to 3.3, where the bug was introduced by
2d076178c ("MINOR: quic-be: Store asap the DCID").
include/haproxy/quic_conn-t.h
src/quic_rx.c