BUG/MINOR: quic: prevent crash on qc_new_conn() failure
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 19 Apr 2023 08:45:40 +0000 (10:45 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 20 Apr 2023 12:49:32 +0000 (14:49 +0200)
commitd537ca79dc6d4f3047a4c8e6b6d14a1cc0e4a31e
treee71ad81bc373d729760a08d1592ee06a2356f615
parent9bbfa72b672c833c56779c08063d0c6af6230762
BUG/MINOR: quic: prevent crash on qc_new_conn() failure

Properly initialize el_th_ctx member first on qc_new_conn(). This
prevents a segfault if release should be called later due to memory
allocation failure in the function on qc_detach_th_ctx_list().

This should be backported up to 2.7.
src/quic_conn.c