]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server: Be more strict on the server-state line parsing
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Feb 2021 17:49:31 +0000 (18:49 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 25 Feb 2021 09:02:39 +0000 (10:02 +0100)
commit0bf268e18484bf3107b3c952a82d17e141ce1976
treefee7f72771e66723731447294f454b417bafcd48
parent2a54ffbf434143e6f76c426c48f752e402e7d764
MINOR: server: Be more strict on the server-state line parsing

The srv_state_parse_line() function was rewritten to be more strict. First
of all, it is possible to make the difference between an ignored line and an
malformed one. Then, only blank characters (spaces and tabs) are now allowed
as field separator. An error is reported for truncated lines or for lines
with an unexpected number of arguments regarding the provided version.
However, for now, errors are ignored by the caller, invalid lines are just
skipped.
src/server.c