diff --git a/src/mux_quic.c b/src/mux_quic.c index ebe37fe10..d3beee730 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -2888,7 +2888,6 @@ static void qcc_release(struct qcc *qcc) if (conn) { LIST_DEL_INIT(&conn->stopping_list); - conn->handle.qc->conn = NULL; conn->mux = NULL; conn->ctx = NULL; diff --git a/src/xprt_quic.c b/src/xprt_quic.c index d6d1a1670..dcca43509 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -25,6 +25,8 @@ static void quic_close(struct connection *conn, void *xprt_ctx) TRACE_ENTER(QUIC_EV_CONN_CLOSE, qc); + qc->conn = NULL; + /* Next application data can be dropped. */ qc->mux_state = QC_MUX_RELEASED;