mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
Do not crash if computed attribute has no values - necessary for range retrieval
support
This commit is contained in:
parent
5d843b2b13
commit
4eaef6a37d
1 changed files with 1 additions and 1 deletions
|
|
@ -3642,7 +3642,7 @@ int slapi_int_compute_output_ber(computed_attr_context *c, Slapi_Attr *a, Slapi_
|
|||
return 1;
|
||||
}
|
||||
|
||||
if ( !c->cac_attrsonly ) {
|
||||
if ( !c->cac_attrsonly && a->a_vals != NULL ) {
|
||||
for ( i = 0; a->a_vals[i].bv_val != NULL; i++ ) {
|
||||
if ( !access_allowed( op, e,
|
||||
desc, &a->a_vals[i], ACL_READ, &c->cac_acl_state)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue