mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-22 14:49:45 -04: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue