mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 06:41:32 +02:00
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:
parent
5f7f118b31
commit
19cd46e6e5
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user