]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: checks: ensure the health_status is always within bounds
authorWilly Tarreau <w@1wt.eu>
Wed, 23 Jan 2013 23:37:39 +0000 (00:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Jan 2013 15:19:18 +0000 (16:19 +0100)
commitbb95666bac94b6235eda431aba788644f7de7a3f
tree804b927bf7d34deef11f2fae2aad4cee5503c6b6
parentf7f057bab90ea634b3e5c9c127c8b1c6151368f8
BUG/MEDIUM: checks: ensure the health_status is always within bounds

health_adjust() checks for incorrect bounds for the status argument.
With current code, the argument is always a constant from the valid
enum so there is no impact and the check is basically a NOP. However
users running local patches (eg: new checks) might want to recheck
their code.

This fix should be backported to 1.4 which introduced the issue.

Reported-by: Dinko Korunic <dkorunic@reflected.net>
src/checks.c