mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
BUG/MEDIUM: servers state: server port is used uninitialized
Nenad spotted that the last fix was unfortunately wrong. Needs to be backported to 1.6 as well.
This commit is contained in:
parent
a875b1f92e
commit
f3c7a83acc
@ -2162,7 +2162,7 @@ static void srv_update_state(struct server *srv, int version, char **params)
|
|||||||
int port;
|
int port;
|
||||||
|
|
||||||
/* save the port, applies the new IP then reconfigure the port */
|
/* save the port, applies the new IP then reconfigure the port */
|
||||||
get_host_port(&srv->addr);
|
port = get_host_port(&srv->addr);
|
||||||
srv->addr.ss_family = addr.ss_family;
|
srv->addr.ss_family = addr.ss_family;
|
||||||
str2ip2(params[0], &srv->addr, srv->addr.ss_family);
|
str2ip2(params[0], &srv->addr, srv->addr.ss_family);
|
||||||
set_host_port(&srv->addr, port);
|
set_host_port(&srv->addr, port);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user