summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-11-24 18:22:08 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-12-01 16:16:01 -0500
commit5de0dda3e3ee131000c5f2155416b98f22a86313 (patch)
treedb9e4d3de3bd640199205e9831721937308b8ae6 /src/providers
parentc8708cd958c633cc3c57a3460bdb15391200e1e1 (diff)
downloadsssd-5de0dda3e3ee131000c5f2155416b98f22a86313.tar.gz
sssd-5de0dda3e3ee131000c5f2155416b98f22a86313.tar.xz
sssd-5de0dda3e3ee131000c5f2155416b98f22a86313.zip
Fix offline detection in sdap_cli_connect request
sdap_cli_connect_recv_ext() checks if the failover server is not set to determine if the backend is offline. To make this work properly if multiple servers are defined the failover server must be set to NULL if all servers are checked.
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ldap/sdap_async_connection.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_async_connection.c b/src/providers/ldap/sdap_async_connection.c
index 0cb9162e2..f143a013e 100644
--- a/src/providers/ldap/sdap_async_connection.c
+++ b/src/providers/ldap/sdap_async_connection.c
@@ -1137,6 +1137,7 @@ static void sdap_cli_resolve_done(struct tevent_req *subreq)
ret = be_resolve_server_recv(subreq, &state->srv);
talloc_zfree(subreq);
if (ret) {
+ state->srv = NULL;
/* all servers have been tried and none
* was found good, go offline */
tevent_req_error(req, EIO);