BUG/MINOR: server: Init params before parsing a new server-state line
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 19 Feb 2021 15:47:11 +0000 (16:47 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 22 Feb 2021 09:23:25 +0000 (10:23 +0100)
commitd119e5671ace438224c51e6603d1e146981a224b
treeaad37f78340122adf062e09cb62a36c792adbf14
parent847cd956680a56356deddd761c4f6f718f7ecba5
BUG/MINOR: server: Init params before parsing a new server-state line

Same static arrays of parameters are used to parse all server-state
lines. Thus it is important to reinit them to be sure to not get params from
the previous line, eventually from the previous loaded file.

This patch should be backported to all stable branches. However, in 2.0 and
prior, the parsing of server-state lines are inlined in apply_server_state()
function. Thus the patch will have to be adapted on these versions.

(cherry picked from commit 06cd2569786d31ebb15832cb1053be9aaaadc3f7)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/server.c