commit | 8a14b73ecf992e535301972e0b7d9e7f14d1eb4c | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Mon Feb 15 16:24:10 2021 +0100 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Thu Feb 25 10:02:39 2021 +0100 |
tree | 804998ebccc86287408610e44557ae9ea5237ef5 | |
parent | 8b4b6a0d63c5b95d51c9502e38a0ef04f3445535 [diff] |
MINOR: server: Be more strict when reading the version of a server-state file Now, we read a full line and expects to found an integer only on it. And if the line is empty or truncated, an error is returned. If the version is not valid, an error is also returned. This way, the first line is no longer partially read.