]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: drop multiple Retry on same connection master
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 7 Aug 2026 14:56:18 +0000 (16:56 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 7 Aug 2026 15:10:33 +0000 (17:10 +0200)
commit33765cf01ddef108dd1e50df9048e9a17be0fbb6
treeb6d56fcd83b309944b94e24423058a91146cf19a
parent1a4f4b4b32172a6bdd900a4c25d6110be8b69570
BUG/MINOR: quic: drop multiple Retry on same connection

Ensures that only a single Retry packet is handled by a QUIC haproxy
client per connection. This is mandated by RFC 9000. The first received
token should still be sufficient to validate the connection.

This change is applied directly in quic_rx_pkt_parse(). In case of
multiple Retry, packets are silently ignored, whether token is identical
or not.

This fix is particularly important to prevent a memory leak on several
elements, first <retry_token> member of quic_conn. This also concerns
elements from the TLS stack as initial encryption level would be
reinitialized needlessly.

Reported-by: Claude (ANT-2026-CJ4Z875H)
This must be backported up to 3.3.
src/quic_rx.c