Full_Name: David Steck Version: devel OS: NT / NetWare URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (137.65.132.22) The ldap_log_check() function incorrectly compares the bitmask "loglvl" (selecting which kinds of debug output are desired) to ld->ld_errno. It should compare it to ld->ld_debug. The following patch fixes it. Index: print.c =================================================================== RCS file: /repo/OpenLDAP/pkg/ldap/libraries/libldap/print.c,v retrieving revision 1.8 diff -u -r1.8 print.c --- print.c 2000/05/13 00:38:38 1.8 +++ print.c 2000/05/22 21:18:18 @@ -26,7 +26,7 @@ if(ld == NULL) { errlvl = ldap_debug; } else { - errlvl = ld->ld_errno; + errlvl = ld->ld_debug; } return errlvl & loglvl ? 1 : 0;
changed notes changed state Open to Closed
fixed