Skip to content
Snippets Groups Projects
Commit 4eaef6a3 authored by Luke Howard's avatar Luke Howard
Browse files

Do not crash if computed attribute has no values - necessary for range retrieval

support
parent 5d843b2b
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment