mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-07 07:42:49 -04:00
BUG/MINOR: quic: prevent crash on qc_new_conn() failure
Properly initialize el_th_ctx member first on qc_new_conn(). This prevents a segfault if release should be called later due to memory allocation failure in the function on qc_detach_th_ctx_list(). This should be backported up to 2.7.
This commit is contained in:
parent
9bbfa72b67
commit
d537ca79dc
1 changed files with 1 additions and 0 deletions
|
|
@ -5471,6 +5471,7 @@ static struct quic_conn *qc_new_conn(const struct quic_version *qv, int ipv4,
|
|||
qc_init_fd(qc);
|
||||
|
||||
LIST_INIT(&qc->back_refs);
|
||||
LIST_INIT(&qc->el_th_ctx);
|
||||
|
||||
/* Now proceeds to allocation of qc members. */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue