From: Pierangelo Masarati Date: Wed, 12 Jan 2005 00:53:50 +0000 (+0000) Subject: silence warning for global scoped global ACLs X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~421 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b46518ff77ac399305161ab2b8f0ed26901e839f;p=openldap silence warning for global scoped global ACLs --- diff --git a/servers/slapd/aclparse.c b/servers/slapd/aclparse.c index 05b52d25f6..516fa0aaca 100644 --- a/servers/slapd/aclparse.c +++ b/servers/slapd/aclparse.c @@ -177,6 +177,10 @@ check_scope( BackendDB *be, AccessControl *a ) dn = be->be_nsuffix[0]; + if ( BER_BVISEMPTY( &dn ) ) { + return ACL_SCOPE_OK; + } + if ( !BER_BVISEMPTY( &a->acl_dn_pat ) || a->acl_dn_style != ACL_STYLE_REGEX ) {