From: Luke Howard Date: Mon, 27 Feb 2006 05:21:11 +0000 (+0000) Subject: Fix slapi_valueset_count() for no value case X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~167 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cd18c6cb4d8392db3e362dda7d17f23c48523a88;p=openldap Fix slapi_valueset_count() for no value case --- 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++ ) ;