diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2012-11-11 15:02:26 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2012-11-11 15:02:26 +0100 |
commit | 3e982207a1b0dd9c433d2b0a141b3280ac053c83 (patch) | |
tree | 555c32f7a9b08933702ad4fa7de5652d82f37a0f /nslcd | |
parent | ba1d1f76dfb4fa3f2a408e8b31537dc682f4bf3b (diff) |
log connection message before clearing error indicators to not hide these log messages in most configurations (fixes r1095)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1814 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd')
-rw-r--r-- | nslcd/myldap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nslcd/myldap.c b/nslcd/myldap.c index 2333c01..048d878 100644 --- a/nslcd/myldap.c +++ b/nslcd/myldap.c @@ -966,13 +966,13 @@ static int do_retry_search(MYLDAP_SEARCH *search) rc=do_try_search(search); if (rc==LDAP_SUCCESS) { - /* update ok time */ pthread_mutex_lock(&uris_mutex); - current_uri->firstfail=0; - current_uri->lastfail=0; /* check if we are coming back from an error */ if ((current_uri->lastfail>0)||(search->session->current_uri!=start_uri)) log_log(LOG_INFO,"connected to LDAP server %s",current_uri->uri); + /* update ok time */ + current_uri->firstfail=0; + current_uri->lastfail=0; pthread_mutex_unlock(&uris_mutex); /* flag the search as valid */ search->valid=1; |