mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-28 14:21:00 +01:00
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:
parent
4d5f13cab3
commit
3340029b97
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user