Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd
diff options
context:
space:
mode:
Diffstat (limited to 'nslcd')
-rw-r--r--nslcd/myldap.c2
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);