diff --git a/src/mux_h2.c b/src/mux_h2.c index 4b426394c..1edc0d22c 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -4312,7 +4312,7 @@ static void h2_detach(struct sedesc *sd) /* refresh the timeout if none was active, so that the last * leaving stream may arm it. */ - if (!tick_isset(h2c->task->expire)) + if (h2c->task && !tick_isset(h2c->task->expire)) h2c_update_timeout(h2c); return; }