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.
This commit is contained in:
Frédéric Lécaille 2022-01-10 11:40:33 +01:00
parent 5f7f118b31
commit 19cd46e6e5

View File

@ -234,6 +234,7 @@ static void qc_release(struct qcc *qcc)
} }
if (conn) { if (conn) {
conn->qc->conn = NULL;
conn->mux = NULL; conn->mux = NULL;
conn->ctx = NULL; conn->ctx = NULL;
@ -242,6 +243,7 @@ static void qc_release(struct qcc *qcc)
if (conn->destroy_cb) if (conn->destroy_cb)
conn->destroy_cb(conn); conn->destroy_cb(conn);
conn_free(conn); conn_free(conn);
fprintf(stderr, "conn@%p released\n", conn);
} }
} }