if (qc) {
const struct quic_tls_ctx *tls_ctx;
- chunk_appendf(&trace_buf, " : qc@%p", qc);
+ chunk_appendf(&trace_buf, " : qc@%p flags=0x%x", qc, qc->flags);
if (mask & QUIC_EV_CONN_INIT) {
chunk_appendf(&trace_buf, "\n odcid");
quic_cid_dump(&trace_buf, &qc->odcid);
pool_free(pool_head_quic_conn_rxbuf, qc->rx.buf.area);
pool_free(pool_head_quic_conn, qc);
+ qc = NULL;
TRACE_PROTO("QUIC conn. freed", QUIC_EV_CONN_FREED, qc);
/* If the quic-conn timer has already expired free the quic-conn. */
if (qc->flags & QUIC_FL_CONN_EXP_TIMER) {
quic_conn_release(qc);
+ qc = NULL;
goto leave;
}
{
struct quic_conn *qc = NULL;
- TRACE_ENTER(QUIC_EV_CONN_NEW, conn);
+ TRACE_ENTER(QUIC_EV_CONN_NEW, qc);
/* do not store the context if already set */
if (*xprt_ctx)