From 3340029b978126743f702ad3d967b42e026516af Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 5 Nov 2017 11:23:40 +0100 Subject: [PATCH] BUG/MAJOR: h2: set the connection's task to NULL when no client timeout is set If "timeout client" is missing from the frontend, the task is not initialized, causing a crash on connection teardown. --- src/mux_h2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mux_h2.c b/src/mux_h2.c index 2fffcdeca..ed4027c5f 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -329,6 +329,7 @@ static int h2c_frt_init(struct connection *conn) h2c->timeout = sess->fe->timeout.client; + h2c->task = NULL; if (tick_isset(h2c->timeout)) { t = task_new(tid_bit); if (!t)