]> git.kaiwu.me - nginx.git/commit
QUIC: fixed encryption level in ngx_quic_frame_sendto().
authorRoman Arutyunyan <arut@nginx.com>
Thu, 4 May 2023 15:29:34 +0000 (19:29 +0400)
committerRoman Arutyunyan <arut@nginx.com>
Thu, 4 May 2023 15:29:34 +0000 (19:29 +0400)
commit13f81f9b88dd9de6d2ff10c3e4aa9a4a160ee7ed
treed6ba0f6bf8a126b6afae56a899a59dd6b93c3bd5
parent2187e5e1d9667aa5d0c137186a3e91c3c88dfa23
QUIC: fixed encryption level in ngx_quic_frame_sendto().

Previously, ssl_encryption_application was hardcoded.  Before 9553eea74f2a,
ngx_quic_frame_sendto() was used only for PATH_CHALLENGE/PATH_RESPONSE sent
at the application level only.  Since 9553eea74f2a, ngx_quic_frame_sendto()
is also used for CONNECTION_CLOSE, which can be sent at initial level after
SSL handshake error or rejection.  This resulted in packet encryption error.
Now level is copied from frame, which fixes the error.
src/event/quic/ngx_event_quic_output.c