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.
diff --git a/src/mux_quic.c b/src/mux_quic.c
index f9b212f..9326dc8 100644
--- a/src/mux_quic.c
+++ b/src/mux_quic.c
@@ -234,6 +234,7 @@
}
if (conn) {
+ conn->qc->conn = NULL;
conn->mux = NULL;
conn->ctx = NULL;
@@ -242,6 +243,7 @@
if (conn->destroy_cb)
conn->destroy_cb(conn);
conn_free(conn);
+ fprintf(stderr, "conn@%p released\n", conn);
}
}