mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-09 23:39:55 +00: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;
|
||||
|
||||
/* 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;
|
||||
str2ip2(params[0], &srv->addr, srv->addr.ss_family);
|
||||
set_host_port(&srv->addr, port);
|
||||
|
Loading…
Reference in New Issue
Block a user