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)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 20 May 2025 16:09:12 +0000 (18:09 +0200)
commit2284f5d3da22ab6c36f8dd5d696e3ddcc6c0694f
treea35f8dd43f25ffe4691b13331ca371ab9df69212
parent842b80083ddd38d70b98a13210b7054bcfb84bd0
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>
(cherry picked from commit b70be5c97c713c12e9e2a2483b7c52a5a849fcd4)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/quic_tp.c