]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MAJOR: h2: set the connection's task to NULL when no client timeout is set
authorWilly Tarreau <w@1wt.eu>
Sun, 5 Nov 2017 10:23:40 +0000 (11:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 5 Nov 2017 10:23:40 +0000 (11:23 +0100)
If "timeout client" is missing from the frontend, the task is not initialized,
causing a crash on connection teardown.

src/mux_h2.c

index 2fffcdeca60c4608681bbcbcec28fe23261b4240..ed4027c5f1fd9cae0793f637d15c669a87c6a1b0 100644 (file)
@@ -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)