]> git.kaiwu.me - nginx.git/commit
QUIC: rejected CRYPTO frames received in 1-RTT packets
authorVadim Zhestikov <v.zhestikov@f5.com>
Wed, 12 Aug 2026 19:41:54 +0000 (12:41 -0700)
committerVadimZhestikov <108960056+VadimZhestikov@users.noreply.github.com>
Tue, 25 Aug 2026 21:36:09 +0000 (14:36 -0700)
commit9c30a4debcdef47fdb056b0bd1cff29882f372d9
tree43781fff77d6d6f8f7581203a23ebeb67e12ac6a
parent9b76c21b01b75f4b82f1f467ca5397be2c943253
QUIC: rejected CRYPTO frames received in 1-RTT packets

If a CRYPTO frame was received after the handshake, ngx_quic_handshake()
ran the handshake completion for the second time.  With the check added
in 6f8c520f4, this is limited to short header packets.

Since a client has nothing to send in a CRYPTO frame once the handshake
is complete, such frames are now rejected with the "unexpected_message"
connection error, as does TLS 1.3 for handshake messages received out of
order, and QUIC requires for KeyUpdate.
src/event/quic/ngx_event_quic_ssl.c