]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux_quic: remove dangling qc->qcc ref on MUX init failure
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 28 Oct 2026 10:20:11 +0000 (11:20 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 12 Nov 2026 16:30:08 +0000 (17:30 +0100)
commitaf5707d48ea69feca3eb36ea59d02013ff3b5e9f
tree4dc6ad0038d5f5fcbfebb95e17e695355be2d3b1
parenta5855404ef6db94519fe4a139e788b73a83cfbb8
BUG/MINOR: mux_quic: remove dangling qc->qcc ref on MUX init failure

During QUIC MUX init, the newly allocated QCC reference is stored in the
underlying quic_conn instance. If MUX init fails later, the reference is
not reset despite QCC being freed, and there is a risk that the
transport layer uses the dangling pointer.

Fix this by delaying the transport layer registration until every
fallible operations in MUX init has succeeded.

This must be backported up to 2.8.
src/mux_quic.c