From 19cd46e6e50bd78237c7f9f0c2176ce17845c3d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Mon, 10 Jan 2022 11:40:33 +0100 Subject: [PATCH] MINOR: quic: Reset ->conn quic_conn struct member when calling qc_release() There may be remaining locations where ->conn quic_conn struct member is used. So let's reset this. Add a trace to have an idead when this connection is released. --- src/mux_quic.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mux_quic.c b/src/mux_quic.c index f9b212f88..9326dc819 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -234,6 +234,7 @@ static void qc_release(struct qcc *qcc) } if (conn) { + conn->qc->conn = NULL; conn->mux = NULL; conn->ctx = NULL; @@ -242,6 +243,7 @@ static void qc_release(struct qcc *qcc) if (conn->destroy_cb) conn->destroy_cb(conn); conn_free(conn); + fprintf(stderr, "conn@%p released\n", conn); } }