From: Willy Tarreau Date: Sun, 5 Nov 2017 10:23:40 +0000 (+0100) Subject: BUG/MAJOR: h2: set the connection's task to NULL when no client timeout is set X-Git-Tag: v1.8-rc3~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3340029b978126743f702ad3d967b42e026516af;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/mux_h2.c b/src/mux_h2.c index 2fffcdeca6..ed4027c5f1 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)