]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux-quic: fix potential NULL deref on qcc_release()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 8 Apr 2026 12:58:08 +0000 (14:58 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 10 Apr 2026 08:20:52 +0000 (10:20 +0200)
commit90d0e8a94847ec0d7074b99bc383f799c95b30f1
treec9e99aba35b0454bbcecaf3ed36d128d443c15c4
parent4ad200f2767901fb041112021f742c514c2a8997
BUG/MINOR: mux-quic: fix potential NULL deref on qcc_release()

In qcc_release(), <conn> may be NULL. Thus every access on it must be
tested.

With recent QMux introduction, a call to conn_is_quic() has been added
prior to registration of the stream rejection callback. It could lead to
NULL deref as <conn> is not tested there. Fix this by adding an extra
check on the pointer validity.

No need to backport.
src/mux_quic.c