]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: fix crash on handshake io-cb for null next enc level
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 9 Aug 2022 15:52:52 +0000 (17:52 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 9 Aug 2022 16:01:10 +0000 (18:01 +0200)
commitf0f92b2db8b95d5fbd9bc8def073ed2c3317f5d3
tree1ecea4afbb19bed1a89a7b03f1d6b6ec8b4e9207
parent96ca1b7c3932e7b93efaaab314035aced8303c16
BUG/MINOR: quic: fix crash on handshake io-cb for null next enc level

When arriving at the handshake completion, next encryption level will be
null on quic_conn_io_cb(). Thus this must be check this before
dereferencing it via qc_need_sending() to prevent a crash.

This was reproduced quickly when browsing over a local nextcloud
instance through QUIC with firefox.

This has been introduced in the current dev with quic-conn Tx
refactoring. No need to backport it.
src/xprt_quic.c