ITS#7350 allow value-specific ACLs on zero-length values

This commit is contained in:
Howard Chu 2012-08-22 15:05:54 -07:00
parent a0e48e7246
commit 3d107181cf

View file

@ -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 &&