From cd18c6cb4d8392db3e362dda7d17f23c48523a88 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Mon, 27 Feb 2006 05:21:11 +0000 Subject: [PATCH] Fix slapi_valueset_count() for no value case --- servers/slapd/slapi/slapi_utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/servers/slapd/slapi/slapi_utils.c b/servers/slapd/slapi/slapi_utils.c index 6b03416dc2..39cd1ed195 100644 --- a/servers/slapd/slapi/slapi_utils.c +++ b/servers/slapd/slapi/slapi_utils.c @@ -2532,6 +2532,9 @@ int slapi_valueset_count( const Slapi_ValueSet *vs ) vp = *vs; + if ( vp == NULL ) + return 0; + for ( i = 0; vp[i].bv_val != NULL; i++ ) ; -- 2.39.5