]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: fix crash on client handshake abort
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 4 Nov 2025 16:30:12 +0000 (17:30 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 4 Nov 2025 16:33:42 +0000 (17:33 +0100)
commit69de7ec14e01b1724773ceda019f654dd381b522
treed6db19359c5d6132ca12028d53a8781e448c9ea4
parent3c578ca31c92b9d03b72c9e5159f49b3d326864b
BUG/MINOR: quic: fix crash on client handshake abort

On backend side, a connection can be aborted and released prior to
handshake completion. This causes a crash in qc_ssl_do_hanshake() as
<conn> member of ssl_sock_ctx is not reset in this case.

To fix this, use <conn> member of quic_conn instead. This is safe as it
is properly set to NULL when a connection is released.

No impact on the frontend side as <conn> member is not accessed. Indeed,
in this case connection is most of the times allocated after handshake
completion.

No need to be backported.
src/quic_ssl.c