]> git.kaiwu.me - nginx.git/commit
QUIC: preserved handshake error with OpenSSL QUIC API master
authorNitin Swami <n.swami@f5.com>
Wed, 11 Nov 2026 15:59:47 +0000 (21:29 +0530)
committerSergey Kandaurov <pluknet@nginx.com>
Wed, 25 Nov 2026 18:50:43 +0000 (22:50 +0400)
commit6d81cb7c629bd4bb17250d2995e92b2ff309d41b
tree88e0eec1b4753b72cbd1e0e5e4ef269ba5fcf623
parent75f572494059d54aaeca2ca22114d5d0f4fde224
QUIC: preserved handshake error with OpenSSL QUIC API

Previously, ngx_quic_cbs_send() unconditionally set the error for
missing ALPN or transport parameters.  If the transport parameters
were rejected earlier, as an example, due to an invalid value, the
TRANSPORT_PARAMETER_ERROR set in ngx_quic_cbs_got_transport_params()
was overwritten with the "missing transport parameters" crypto error,
and the client received a misleading error code.

The fix is to set the error only if no error was set before, similar
to ngx_quic_add_handshake_data().
src/event/quic/ngx_event_quic_ssl.c