From: Howard Chu Date: Wed, 22 Aug 2012 22:05:54 +0000 (-0700) Subject: ITS#7350 allow value-specific ACLs on zero-length values X-Git-Tag: OPENLDAP_REL_ENG_2_5_0ALPHA~841 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d107181cf532343d98033e4569cdf08a5f1c4e8;p=thirdparty%2Fopenldap.git ITS#7350 allow value-specific ACLs on zero-length values --- diff --git a/servers/slapd/aclparse.c b/servers/slapd/aclparse.c index 1d2f09fd92..e1ac805306 100644 --- a/servers/slapd/aclparse.c +++ b/servers/slapd/aclparse.c @@ -2830,7 +2830,7 @@ acl_unparse( AccessControl *a, struct berval *bv ) ptr = acl_safe_strcopy( ptr, "\n" ); } - if ( !BER_BVISEMPTY( &a->acl_attrval ) ) { + if ( !BER_BVISNULL( &a->acl_attrval ) ) { to++; ptr = acl_safe_strcopy( ptr, " val." ); if ( a->acl_attrval_style == ACL_STYLE_BASE &&