From 3b063b2167d7f12648f643bb0b5b5e6e44b29cc9 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Wed, 24 Sep 2008 08:01:30 +0000 Subject: 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 --- nslcd/myldap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3