]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: use proper error code on invalid received TP value
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 6 May 2025 16:00:43 +0000 (18:00 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 7 May 2025 13:21:30 +0000 (15:21 +0200)
commitb60a17aad768369ab7e328949112b50cd78bc987
tree455e90a241a51afff0d987bf4a3b375d93b2e209
parent10f1f1adce032742d60fe14ee780871c4e6a1db1
BUG/MINOR: quic: use proper error code on invalid received TP value

As per RFC 9000, checks must be implemented to reject invalid values for
received transport parameters. Such values are dependent on the
parameter type.

Checks were already implemented for ack_delay_exponent and
active_connection_id_limit, accordingly with the QUIC specification.
However, the connection was closed with an incorrect error code. Fix
this to ensure that TRANSPORT_PARAMETER_ERROR code is used as expected.

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