BUG/MEDIUM: quic: Too short Initial packet sent (enc. level allocation failed)
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 7 Nov 2023 13:16:33 +0000 (14:16 +0100)
committerFrédéric Lécaille <flecaille@haproxy.com>
Thu, 9 Nov 2023 09:32:31 +0000 (10:32 +0100)
commit4e3b28e8b6b0859596532b4541183d96f4c8ad6a
treeb4d5ccfc0af45b14f78e858d6ba198722906a05e
parent4cf784f38ed20b42f6e71bd8a2e8157b95329ee5
BUG/MEDIUM: quic: Too short Initial packet sent (enc. level allocation failed)

If the Handshake encryption level could not be allocated, this could lead
to Initial packets to be sent because no Handshake CRYPTO frames were generated.

Furthermore in such an allocation failure case, the connection should be closed
as soon as possible. This is done making ha_quic_set_encryption_secrets() return
0 upon an encryption level allocation failure.

Also fix a typo in the trace in relation to this allocation failure.

No need to be backported.
src/quic_ssl.c