]> git.sur5r.net Git - openldap/commitdiff
minor cleanup
authorPierangelo Masarati <ando@openldap.org>
Wed, 30 Mar 2005 18:58:52 +0000 (18:58 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 30 Mar 2005 18:58:52 +0000 (18:58 +0000)
servers/slapd/acl.c

index 2c5551cc3f460e2a12a2e3699af1f29e25145dd0..45aa2477d52bd04e464ffc951fbda125fe3ba7df 100644 (file)
@@ -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;
                                }