mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
BUG/MINOR: server: Fix test on number of fields allowed in a server-state line
When a server-state line is parsed, a test is performed to be sure there is
enough but not too much fields. However the test is buggy. The bug was
introduced in the commit ea2cdf55e ("MEDIUM: server: Don't introduce a new
server-state file version").
No backport needed.
This commit is contained in:
parent
938e85b228
commit
28d7876a0c
1 changed files with 2 additions and 2 deletions
|
|
@ -3166,8 +3166,8 @@ static void srv_state_parse_line(char *buf, const int version, char **params, ch
|
|||
/* if line is incomplete line, then ignore it.
|
||||
* otherwise, update useful flags */
|
||||
if (version == 1 &&
|
||||
arg < SRV_STATE_FILE_MIN_FIELDS_VERSION_1 &&
|
||||
arg > SRV_STATE_FILE_MAX_FIELDS_VERSION_1)
|
||||
(arg < SRV_STATE_FILE_MIN_FIELDS_VERSION_1 ||
|
||||
arg > SRV_STATE_FILE_MAX_FIELDS_VERSION_1))
|
||||
params[0] = NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue