BUG/MINOR: quic: fix TP reject on invalid max-ack-delay
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 6 May 2025 16:01:09 +0000 (18:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 15 May 2025 15:01:43 +0000 (17:01 +0200)
commit732bba41245e2365eb24bdbb856f5ed44f06d262
treec95dc2b035046ef2c3256a74cb16d98104cc6744
parentaf4048e4e36503557d90e37514a8a3e8e7210c03
BUG/MINOR: quic: fix TP reject on invalid max-ack-delay

Checks are implemented on some received transport parameter values,
to reject invalid ones defined per RFC 9000. This is the case for
max_ack_delay parameter.

The check was not properly implemented as it only reject values strictly
greater than the limit set to 2^14. Fix this by rejecting values of 2^14
and above. Also, the proper error code TRANSPORT_PARAMETER_ERROR is now
set.

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 ffabfb0fc3ad8774024d152fc31a7711a8a9c382)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/quic_tp.c