From 22bc85dc77c9cba1c8a8e88520275ddcd2e13b92 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 30 Mar 2005 18:58:52 +0000 Subject: [PATCH] minor cleanup --- servers/slapd/acl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index 2c5551cc3f..45aa2477d5 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -248,7 +248,7 @@ access_allowed_mask( #endif /* LDAP_SLAPI */ /* grant database root access */ - if ( be != NULL && be_isroot( op ) ) { + if ( /* be != NULL && */ be_isroot( op ) ) { Debug( LDAP_DEBUG_ACL, "<= root access granted\n", 0, 0, 0 ); @@ -713,17 +713,17 @@ acl_mask( * is maintaned in a_dn_pat. */ if ( b->a_dn_style == ACL_STYLE_ANONYMOUS ) { - if ( op->o_ndn.bv_len != 0 ) { + if ( !BER_BVISEMPTY( &op->o_ndn ) ) { continue; } } else if ( b->a_dn_style == ACL_STYLE_USERS ) { - if ( op->o_ndn.bv_len == 0 ) { + if ( BER_BVISEMPTY( &op->o_ndn ) ) { continue; } } else if ( b->a_dn_style == ACL_STYLE_SELF ) { - if ( op->o_ndn.bv_len == 0 ) { + if ( BER_BVISEMPTY( &op->o_ndn ) ) { continue; } -- 2.39.5