MINOR: quic: do not use quic_conn after dropping it

quic_conn_drop decrement the refcount and may free the quic_conn if
reaching 0. The quic_conn should not be dereferenced again after it in
any case even for traces.
This commit is contained in:
Amaury Denoyelle 2022-01-21 14:54:58 +01:00
parent 6c539c4b8c
commit 9c4da93796

View File

@ -3426,8 +3426,9 @@ void quic_close(struct connection *conn, void *xprt_ctx)
conn_ctx->wait_event.tasklet = NULL;
}
quic_conn_drop(qc);
TRACE_LEAVE(QUIC_EV_CONN_CLOSE, qc);
quic_conn_drop(qc);
}
/* Callback called upon loss detection and PTO timer expirations. */