BUG/MINOR: checks: return correct error code for srv_parse_agent_check
authorDirkjan Bussink <d.bussink@gmail.com>
Fri, 18 Jun 2021 19:57:49 +0000 (19:57 +0000)
committerWilly Tarreau <w@1wt.eu>
Fri, 25 Jun 2021 06:55:39 +0000 (08:55 +0200)
commitdfee217b68a241f2723c2a4b67d2af187f0b6690
tree7412c93e88b4b314f305cfcb3e33b2e34875fe01
parent07ecff589d5e67eacfacfe62bccd70ea825b8bc0
BUG/MINOR: checks: return correct error code for srv_parse_agent_check

In srv_parse_agent_check the error code is not returned in case
something goes wrong. The value 0 is always return.

Additionally, there's a small cleanup of unreachable returns that in
most checks are not present either and removed in two places they were
present. This makes the code consistent across the different checks.
src/check.c