mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-28 15:42:30 +00:00
BUG/MEDIUM: ssl: Don't forget to initialize ctx->send_recv and ctx->recv_wait.
When creating a new ssl_sock_ctx, don't forget to initialize its send_recv and recv_wait to NULL, or we may end up dereferencing random values, and crash.
This commit is contained in:
parent
03abf2d31e
commit
81284e6908
@ -5122,6 +5122,8 @@ static int ssl_sock_init(struct connection *conn, void **xprt_ctx)
|
||||
ctx->sent_early_data = 0;
|
||||
ctx->tmp_early_data = -1;
|
||||
ctx->conn = conn;
|
||||
ctx->send_wait = NULL;
|
||||
ctx->recv_wait = NULL;
|
||||
|
||||
/* Only work with sockets for now, this should be adapted when we'll
|
||||
* add QUIC support.
|
||||
|
Loading…
Reference in New Issue
Block a user