summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-04-01 13:33:47 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-04-01 15:45:32 -0400
commitbae2f77247b1d431b764b2f5c77e65a74c70605e (patch)
treed90124279add6eeec4cb616d51aed46b5c568f55
parentbe0546bf88de10592b470d2948c8205db7664f6f (diff)
downloadsssd-bae2f77247b1d431b764b2f5c77e65a74c70605e.tar.gz
sssd-bae2f77247b1d431b764b2f5c77e65a74c70605e.tar.xz
sssd-bae2f77247b1d431b764b2f5c77e65a74c70605e.zip
Do not attempt to resolve nameless serverssssd-1.5.1-24.el5
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.
-rw-r--r--src/providers/fail_over.c2
1 files changed, 1 insertions, 1 deletions
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)));