BUG/MAJOR: quic: remove qc from receiver cids tree on free
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 30 Sep 2021 09:03:28 +0000 (11:03 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 7 Oct 2021 15:35:25 +0000 (17:35 +0200)
commit2af1985af830031ffbfdadc85981a2c76d744fbf
treea51a4d900b514af8565c05b611418eaaec2c68a3
parentd595f108dbcb3bed48f3a327b5448dd084ee29a7
BUG/MAJOR: quic: remove qc from receiver cids tree on free

Remove the quic_conn from the receiver connection_ids tree on
quic_conn_free. This fixes a crash due to dangling references in the
tree after a quic connection release.

This operation must be conducted under the listener lock. For this
reason, the quic_conn now contains a reference to its attached listener.
include/haproxy/xprt_quic-t.h
src/xprt_quic.c