From 3e982207a1b0dd9c433d2b0a141b3280ac053c83 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 11 Nov 2012 14:02:26 +0000 Subject: 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 --- nslcd/myldap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nslcd') 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; -- cgit v1.2.3