]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-quic: fix crash with traces in qc_detach()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 12 Aug 2022 13:56:21 +0000 (15:56 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 12 Aug 2022 14:02:00 +0000 (16:02 +0200)
commit35a66c0a367ec773d155ef1d380e8c9d2598afa8
tree743863e3d8bf88b4b7fcd8fcd8fea29904f2ccf0
parentded77cc71f3ab4d23251cadb3dc1ba117b096a71
BUG/MINOR: mux-quic: fix crash with traces in qc_detach()

qc_detach() is used to free a qcs as notified by sedesc. If there is no
more stream active and the connection is considered as dead, it will
then be freed. This prevent to dereference qcc in TRACE macro. Else this
will cause a crash.

Use a different code-path on release for qc_detach() to fix this bug.

This will fix the last occurence of crash on github issue #1808.

This has been introduced by recent QUIC MUX traces rework. Thus, it does
not need to be backport.
src/mux_quic.c