MEDIUM: Move health element to struct check
This is in preparation for associating a agent check
with a server which runs as well as the server's existing check.
Signed-off-by: Simon Horman <horms@verge.net.au>
diff --git a/src/proto_http.c b/src/proto_http.c
index d9d989b..b5e912e 100644
--- a/src/proto_http.c
+++ b/src/proto_http.c
@@ -2920,7 +2920,7 @@
if ((px->state != PR_STSTOPPED) && (sv->state & SRV_MAINTAIN)) {
/* Already in maintenance, we can change the server state */
set_server_up(&sv->check);
- sv->health = sv->rise; /* up, but will fall down at first failure */
+ sv->check.health = sv->rise; /* up, but will fall down at first failure */
altered_servers++;
total_servers++;
}