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.
srv->do_agent = 1;
out:
- return 0;
+ return err_code;
error:
deinit_srv_agent_check(srv);
deinit_srv_agent_check(srv);
err_code |= ERR_ALERT | ERR_FATAL;
goto out;
- return 0;
}
/* Parse the "fall" server keyword */
deinit_srv_agent_check(srv);
err_code |= ERR_ALERT | ERR_FATAL;
goto out;
- return 0;
}
/* Parse the "inter" server keyword */