From: Kurt Zeilenga Date: Thu, 11 Jul 2002 01:35:37 +0000 (+0000) Subject: Fix ACL to dn="" bug X-Git-Tag: NO_SLAP_OP_BLOCKS~1373 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=98a2e419118b9d7da1191524e8cf5a9629daf479;p=openldap Fix ACL to dn="" bug --- diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index 46159d2156..2318cbffd5 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -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,