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.
This commit is contained in:
Willy Tarreau 2017-11-05 11:23:40 +01:00
parent 4d5f13cab3
commit 3340029b97

View 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)