mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-23 19:03:06 -04:00
BUG/MEDIUM: quic: fix null deref on error path in qc_conn_init()
When ctx is NULL, we go to the "err" label, which could dereference it. No backport is needed.
This commit is contained in:
parent
714f28ceef
commit
7deb28ce65
1 changed files with 1 additions and 1 deletions
|
|
@ -4164,7 +4164,7 @@ static int qc_conn_init(struct connection *conn, void **xprt_ctx)
|
|||
return 0;
|
||||
|
||||
err:
|
||||
if (ctx->wait_event.tasklet)
|
||||
if (ctx && ctx->wait_event.tasklet)
|
||||
tasklet_free(ctx->wait_event.tasklet);
|
||||
pool_free(pool_head_quic_conn_ctx, ctx);
|
||||
TRACE_DEVEL("leaving in error", QUIC_EV_CONN_NEW, conn);
|
||||
|
|
|
|||
Loading…
Reference in a new issue