From: Quanah Gibson-Mount Date: Wed, 3 Jun 2009 01:09:42 +0000 (+0000) Subject: To be safe (see ITS#5328), set hasSubordinates before be_has_subordinates() X-Git-Tag: OPENLDAP_REL_ENG_2_4_17~72 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c927bd708a13aa40c03bdc89816707075e92eef9;p=openldap To be safe (see ITS#5328), set hasSubordinates before be_has_subordinates() --- diff --git a/servers/slapd/filterentry.c b/servers/slapd/filterentry.c index aff8da2cc4..1d3f4fe885 100644 --- a/servers/slapd/filterentry.c +++ b/servers/slapd/filterentry.c @@ -546,7 +546,7 @@ test_ava_filter( if ( ava->aa_desc == slap_schema.si_ad_hasSubordinates && op && op->o_bd && op->o_bd->be_has_subordinates ) { - int hasSubordinates; + int hasSubordinates = 0; struct berval hs; if( type != LDAP_FILTER_EQUALITY &&