From: Kurt Zeilenga Date: Tue, 23 May 2000 00:32:50 +0000 (+0000) Subject: ITS#541: fix log check bug X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2900 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=51fb09470189bab6f23478eaf3720e2c99616045;p=openldap ITS#541: fix log check bug --- diff --git a/libraries/libldap/print.c b/libraries/libldap/print.c index 0afe4db43c..02b95bcc05 100644 --- a/libraries/libldap/print.c +++ b/libraries/libldap/print.c @@ -26,7 +26,7 @@ static int ldap_log_check( LDAP *ld, int loglvl ) if(ld == NULL) { errlvl = ldap_debug; } else { - errlvl = ld->ld_errno; + errlvl = ld->ld_debug; } return errlvl & loglvl ? 1 : 0;