From 7fbb94da8d1e4bd5e126372bba34c09ba15070b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Mon, 31 Jan 2022 10:37:07 +0100 Subject: [PATCH] MINOR: quic: Do not use connection struct xprt_ctx too soon In fact the xprt_ctx of the connection is first stored into quic_conn struct as soon as it is initialized from qc_conn_alloc_ssl_ctx(). As quic_conn_init_timer() is run after this function, we can associate the timer context of the timer to the one from the quic_conn struct. --- src/xprt_quic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xprt_quic.c b/src/xprt_quic.c index ef4464d04d..e1dcd62146 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -3687,7 +3687,7 @@ static int quic_conn_init_timer(struct quic_conn *qc) qc->timer = TICK_ETERNITY; qc->timer_task->process = process_timer; - qc->timer_task->context = qc->conn->xprt_ctx; + qc->timer_task->context = qc->xprt_ctx; return 1; } -- 2.47.3