From da4e577b82e210548543d0ee3e3b5640d26db31c Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 1 Apr 2011 13:33:47 +0200 Subject: Do not attempt to resolve nameless servers The failover code is not strictly in charge of resolving. Its main function is to provide a server to connect to for a service. It is legal, although not currently used, to have a server that has no name (server->common == NULL). In this case, no resolving should be done and it is assumed that the failover user, which are the SSSD back ends in our case, would perform any resolving out of band, perhaps using the user_data attribute of fo_server structure. --- src/providers/fail_over.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/fail_over.c b/src/providers/fail_over.c index 4967e195c..613efc05e 100644 --- a/src/providers/fail_over.c +++ b/src/providers/fail_over.c @@ -312,7 +312,7 @@ get_server_status(struct fo_server *server) time_t timeout; if (server->common == NULL) - return SERVER_NAME_NOT_RESOLVED; + return SERVER_NAME_RESOLVED; DEBUG(7, ("Status of server '%s' is '%s'\n", SERVER_NAME(server), str_server_status(server->common->server_status))); -- cgit