mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 14:17:30 -04: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
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue