diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-07-26 10:57:37 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-08-03 11:15:59 +0200 |
commit | 5d84e8a9624be1268c3d64a67f2afc7d5dcf49e1 (patch) | |
tree | fa69c629ee07257c51d9ec9b8fc598746c56936f | |
parent | 2e1b46d7acb03b22b27bbad2816b996db629d609 (diff) | |
download | sssd-5d84e8a9624be1268c3d64a67f2afc7d5dcf49e1.tar.gz sssd-5d84e8a9624be1268c3d64a67f2afc7d5dcf49e1.tar.xz 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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c index a16ab3363..002d6d578 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); } } } |