]> git.sur5r.net Git - openldap/blobdiff - libraries/libldap/print.c
Added support for BDB 4.1.17
[openldap] / libraries / libldap / print.c
index 0afe4db43c17864846875f187e2b2a9bb1ec1e01..bbd21b36e1f99aba83939c6a559f37942db6fd9c 100644 (file)
@@ -1,6 +1,6 @@
 /* $OpenLDAP$ */
 /*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
  * COPYING RESTRICTIONS APPLY, see COPYRIGHT 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;