]> git.sur5r.net Git - openldap/commitdiff
Fix ACL to dn="" bug
authorKurt Zeilenga <kurt@openldap.org>
Thu, 11 Jul 2002 01:35:37 +0000 (01:35 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 11 Jul 2002 01:35:37 +0000 (01:35 +0000)
servers/slapd/acl.c

index 46159d21563a4ae45032583586c4270b58c2cbda..2318cbffd508eebd7ba923c6b51f691271f395ce 100644 (file)
@@ -395,7 +395,7 @@ acl_get(
        for ( ; a != NULL; a = a->acl_next ) {
                (*count) ++;
 
-               if (a->acl_dn_pat.bv_len != 0) {
+               if ( a->acl_dn_pat.bv_len || ( a->acl_dn_style != ACL_STYLE_REGEX )) {
                        if ( a->acl_dn_style == ACL_STYLE_REGEX ) {
 #ifdef NEW_LOGGING
                                LDAP_LOG(( "acl", LDAP_LEVEL_DETAIL1,