Fix ACL to dn="" bug

This commit is contained in:
Kurt Zeilenga 2002-07-11 01:35:37 +00:00
parent 32a2f291ee
commit 98a2e41911

View 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,