mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 12:41:00 +02:00
BUG/MEDIUM: netscaler: Don't forget to allocate storage for conn->src/dst.
In conn_recv_netscaler_cip(), don't forget to allocate conn->src and conn->dst, as those are now dynamically allocated. Not doing so results in getting a crash when using netscaler. This should fix github issue #460. This should be backported to 2.1.
This commit is contained in:
parent
1a693fc2fd
commit
1a9dbe58a6
@ -814,6 +814,9 @@ int conn_recv_netscaler_cip(struct connection *conn, int flag)
|
||||
if (!conn_ctrl_ready(conn))
|
||||
goto fail;
|
||||
|
||||
if (!sockaddr_alloc(&conn->src) || !sockaddr_alloc(&conn->dst))
|
||||
goto fail;
|
||||
|
||||
if (!fd_recv_ready(conn->handle.fd))
|
||||
goto not_ready;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user