From b46518ff77ac399305161ab2b8f0ed26901e839f Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 12 Jan 2005 00:53:50 +0000 Subject: [PATCH] silence warning for global scoped global ACLs --- servers/slapd/aclparse.c | 4 ++++ 1 file changed, 4 insertions(+) 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 ) { -- 2.39.5