]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-quic: prevent crash if conn released during IO callback
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 25 Jul 2022 12:56:54 +0000 (14:56 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 1 Aug 2022 12:13:51 +0000 (14:13 +0200)
commitd3973853c2123c7e55f222c3d68fe3441ee1badc
tree0f86ca5d302ce31edd9a53543ef80fb5ca012a70
parent51d38a26fed4eb57015030dfbc57f1c5f394f184
BUG/MINOR: mux-quic: prevent crash if conn released during IO callback

A qcc instance may be freed in the middle of qc_io_cb() if all streams
were purged. This will lead to a crash as qcc instance is reused after
this step. Jump directly to the end of the function to avoid this.

Note that this bug has not been triggered for the moment. This is a
safety fix to prevent it.

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