diff --git a/src/mux_quic.c b/src/mux_quic.c index 2ed269e3c..c01fcbfa7 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -427,6 +427,10 @@ static struct task *qc_timeout_task(struct task *t, void *ctx, unsigned int stat fprintf(stderr, "%s: timeout\n", __func__); task_destroy(t); + + if (!qcc) + return NULL; + qcc->task = NULL; if (qcc_is_dead(qcc))