]> git.sur5r.net Git - openldap/commitdiff
ITS#541: fix log check bug
authorKurt Zeilenga <kurt@openldap.org>
Tue, 23 May 2000 00:32:50 +0000 (00:32 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 23 May 2000 00:32:50 +0000 (00:32 +0000)
libraries/libldap/print.c

index 0afe4db43c17864846875f187e2b2a9bb1ec1e01..02b95bcc05f98712db79f49754636c01f092042c 100644 (file)
@@ -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;