From: Luke Howard Date: Sun, 20 Jun 2004 18:04:01 +0000 (+0000) Subject: Do not crash if computed attribute has no values - necessary for range retrieval X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~219 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4eaef6a37deca5f98de2907d746939c85cf84fdc;p=openldap Do not crash if computed attribute has no values - necessary for range retrieval support --- diff --git a/servers/slapd/slapi/slapi_utils.c b/servers/slapd/slapi/slapi_utils.c index 984aea8bf0..862e703bcb 100644 --- a/servers/slapd/slapi/slapi_utils.c +++ b/servers/slapd/slapi/slapi_utils.c @@ -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)) {