From: Pierangelo Masarati Date: Wed, 30 Mar 2005 18:58:52 +0000 (+0000) Subject: minor cleanup X-Git-Tag: OPENLDAP_AC_BP~1038 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=22bc85dc77c9cba1c8a8e88520275ddcd2e13b92;p=openldap minor cleanup --- 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; }