mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-17 08:54:41 +00:00
MINOR: mux-quic: fix a possible null dereference in qc_timeout_task
The qcc instance should be tested as it is implied by a previous test that it may be NULL. In this case, qc_timeout_task can be stopped. This should fix github issue #1559.
This commit is contained in:
parent
d439a49655
commit
ea3e0355da
@ -427,6 +427,10 @@ static struct task *qc_timeout_task(struct task *t, void *ctx, unsigned int stat
|
||||
|
||||
fprintf(stderr, "%s: timeout\n", __func__);
|
||||
task_destroy(t);
|
||||
|
||||
if (!qcc)
|
||||
return NULL;
|
||||
|
||||
qcc->task = NULL;
|
||||
|
||||
if (qcc_is_dead(qcc))
|
||||
|
Loading…
Reference in New Issue
Block a user