BUG/MAJOR: check: fix haproxy crash during soft-stop/soft-start

This is the continuation of previous fix bc16cd8 "BUG/MAJOR: fix haproxy
crash when using server tracking instead of checks", the soft-stop/start
states were not addressed by this fix.
This commit is contained in:
Willy Tarreau 2013-11-28 11:27:16 +01:00
parent bc16cd81c4
commit 81cf08c5cd

View File

@ -576,7 +576,7 @@ static void set_server_disabled(struct check *check) {
if (s->state & SRV_CHECKED)
for(srv = s->tracknext; srv; srv = srv->tracknext)
set_server_disabled(check);
set_server_disabled(&srv->check);
}
static void set_server_enabled(struct check *check) {
@ -610,7 +610,7 @@ static void set_server_enabled(struct check *check) {
if (s->state & SRV_CHECKED)
for(srv = s->tracknext; srv; srv = srv->tracknext)
set_server_enabled(check);
set_server_enabled(&srv->check);
}
static void check_failed(struct check *check)