Issue 541 - Minor bug in print.c - Checking loglvl
Summary: Minor bug in print.c - Checking loglvl
Status: VERIFIED FIXED
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: unspecified
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-05-22 21:29 UTC by dsteck@novell.com
Modified: 2014-08-01 21:06 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description dsteck@novell.com 2000-05-22 21:29:03 UTC
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;
Comment 1 Kurt Zeilenga 2000-05-24 14:03:08 UTC
changed notes
changed state Open to Closed
Comment 2 OpenLDAP project 2014-08-01 21:06:10 UTC
fixed