]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: checks: don't call set_server_status_* when no LB algo is set
authorWilly Tarreau <w@1wt.eu>
Sat, 19 May 2012 17:07:40 +0000 (19:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 19 May 2012 17:09:46 +0000 (19:09 +0200)
commit9580d16e4018e9d2db1a9fcad21ba17c367f0436
tree5f968176e8d80eeebf191af4127db720508d5852
parentea95316bf1fc31dad06e80c4384cfb303d5340eb
BUG/MAJOR: checks: don't call set_server_status_* when no LB algo is set

David Touzeau reported that haproxy dies when a server is checked and is
used in a farm with only "option transparent" and no LB algo. This is
because the LB params are NULL, the functions should be checked before
being called.

The same bug is present in 1.4 so this patch must be backported.
include/types/backend.h
src/checks.c
src/dumpstats.c