BUG/MINOR: quic: use proper error code on invalid server TP
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 6 May 2025 15:59:21 +0000 (17:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 15 May 2025 15:01:43 +0000 (17:01 +0200)
commitb70be5c97c713c12e9e2a2483b7c52a5a849fcd4
tree66436d87d159058f021458646165411705a95b4b
parent5eb284aa55fa3a7c12060b3834000dd66f88493e
BUG/MINOR: quic: use proper error code on invalid server TP

This commit is similar to the previous one. It fixes the error code
reported when dealing with invalid received transport parameters. This
time, it handles reception of original_destination_connection_id,
preferred_address and stateless_reset_token which must not be emitted by
the client.

This should be backported up to 2.6. Note that is relies on previous
patch "MINOR: quic: extend return value on TP parsing".

(cherry picked from commit a54fdd3d926fabfc438dbaedbd3d08814fb99862)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/quic_tp.c