MINOR: quic: Unitialized mux context upon Client Hello message receipt.
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 21 Jul 2021 07:34:27 +0000 (09:34 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000 (15:27 +0200)
commit01abc4612b1b59f83718d929b60d2e6f0d2554c9
treea4cae4fe76be0c88169f094aedd3c86a4a3d211e
parent0eb60c5b4d95ce471f207b279a1f4de13df76aa5
MINOR: quic: Unitialized mux context upon Client Hello message receipt.

If we let the connection packet handler task (quic_conn_io_cb) process the first
client Initial packet which contain the TLS Client Hello message before the mux
context is initialized, quic_mux_transport_params_update() makes haproxy crash.
->start xprt callback already wakes up this task and is called after all the
connection contexts are initialized. So, this patch do not wakes up quic_conn_io_cb()
if the mux context is not initialized (this was already the case for the connection
context (conn_ctx)).
src/mux_quic.c
src/xprt_quic.c