diff --git a/src/checks.c b/src/checks.c index eb316cbb6..1acff0d84 100644 --- a/src/checks.c +++ b/src/checks.c @@ -161,7 +161,7 @@ static void set_server_down(struct server *s) s->down_trans++; - if (s->state && SRV_CHECKED) + if (s->state & SRV_CHECKED) for(srv = s->tracknext; srv; srv = srv->tracknext) set_server_down(srv); } @@ -226,7 +226,7 @@ static void set_server_up(struct server *s) { Warning("%s", trash); send_log(s->proxy, LOG_NOTICE, "%s", trash); - if (s->state && SRV_CHECKED) + if (s->state & SRV_CHECKED) for(srv = s->tracknext; srv; srv = srv->tracknext) set_server_up(srv); } @@ -277,7 +277,7 @@ static void set_server_disabled(struct server *s) { if (!s->proxy->srv_bck && !s->proxy->srv_act) set_backend_down(s->proxy); - if (s->state && SRV_CHECKED) + if (s->state & SRV_CHECKED) for(srv = s->tracknext; srv; srv = srv->tracknext) set_server_disabled(srv); } @@ -317,7 +317,7 @@ static void set_server_enabled(struct server *s) { Warning("%s", trash); send_log(s->proxy, LOG_NOTICE, "%s", trash); - if (s->state && SRV_CHECKED) + if (s->state & SRV_CHECKED) for(srv = s->tracknext; srv; srv = srv->tracknext) set_server_enabled(srv); }