summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-07-26 10:57:37 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-08-03 11:15:59 +0200
commit5d84e8a9624be1268c3d64a67f2afc7d5dcf49e1 (patch)
treefa69c629ee07257c51d9ec9b8fc598746c56936f
parent2e1b46d7acb03b22b27bbad2816b996db629d609 (diff)
downloadsssd-5d84e8a9624be1268c3d64a67f2afc7d5dcf49e1.tar.gz
sssd-5d84e8a9624be1268c3d64a67f2afc7d5dcf49e1.tar.bz2
sssd-5d84e8a9624be1268c3d64a67f2afc7d5dcf49e1.zip
Don't call fo_set_{server,port}_status for SRV servers
This bug was producing harmless, but annoying error messages.
-rw-r--r--src/providers/fail_over.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c
index a16ab336..002d6d57 100644
--- a/src/providers/fail_over.c
+++ b/src/providers/fail_over.c
@@ -1512,10 +1512,11 @@ void fo_reset_services(struct fo_ctx *fo_ctx)
DLIST_FOR_EACH(service, fo_ctx->service_list) {
DLIST_FOR_EACH(server, service->server_list) {
- fo_set_server_status(server, SERVER_NAME_NOT_RESOLVED);
- fo_set_port_status(server, PORT_NEUTRAL);
if (server->srv_data != NULL) {
set_srv_data_status(server->srv_data, SRV_NEUTRAL);
+ } else {
+ fo_set_server_status(server, SERVER_NAME_NOT_RESOLVED);
+ fo_set_port_status(server, PORT_NEUTRAL);
}
}
}