diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2008-09-24 10:01:30 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2008-09-24 10:01:30 +0200 |
commit | 3b063b2167d7f12648f643bb0b5b5e6e44b29cc9 (patch) | |
tree | d4a9143dff67cb7cf2164005bec74f55ccf709c3 | |
parent | 87eb22a73a7aa8056c7cd73d7515e2095b679d10 (diff) |
also retry if ldap_result() failed and getting error number returned LDAP_SUCCESS
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@787 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r-- | nslcd/myldap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nslcd/myldap.c b/nslcd/myldap.c index 1d52613..99c90aa 100644 --- a/nslcd/myldap.c +++ b/nslcd/myldap.c @@ -1023,7 +1023,7 @@ MYLDAP_ENTRY *myldap_get_entry(MYLDAP_SEARCH *search,int *rcp) rc=LDAP_UNAVAILABLE; log_log(LOG_ERR,"ldap_result() failed: %s",ldap_err2string(rc)); /* close connection on connection problems */ - if ((rc==LDAP_UNAVAILABLE)||(rc==LDAP_SERVER_DOWN)) + if ((rc==LDAP_UNAVAILABLE)||(rc==LDAP_SERVER_DOWN)||(rc==LDAP_SUCCESS)) { /* close the connection and retry */ do_close(search->session); |