From: Howard Chu Date: Wed, 14 Jan 2015 10:22:50 +0000 (+0000) Subject: Fix NULL in debug output (coverity) X-Git-Tag: OPENLDAP_REL_ENG_2_5_0ALPHA~141^2~147 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=67c13d0ccff80aadff78d1a1c6ae89630766cad9;p=thirdparty%2Fopenldap.git Fix NULL in debug output (coverity) --- diff --git a/servers/slapd/sets.c b/servers/slapd/sets.c index a91a545d18..2da564d7d0 100644 --- a/servers/slapd/sets.c +++ b/servers/slapd/sets.c @@ -358,7 +358,7 @@ done:; done2:; if ( LogTest( LDAP_DEBUG_ACL ) ) { - if ( BER_BVISNULL( set ) ) { + if ( !set || BER_BVISNULL( set ) ) { Debug( LDAP_DEBUG_ACL, " ACL set: empty\n", 0, 0, 0 ); } else {