From 4eaef6a37deca5f98de2907d746939c85cf84fdc Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sun, 20 Jun 2004 18:04:01 +0000 Subject: [PATCH] Do not crash if computed attribute has no values - necessary for range retrieval support --- servers/slapd/slapi/slapi_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.39.5