From 98a2e419118b9d7da1191524e8cf5a9629daf479 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 11 Jul 2002 01:35:37 +0000 Subject: [PATCH] Fix ACL to dn="" bug --- servers/slapd/acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.39.5