From: Hallvard Furuseth Date: Wed, 20 May 2009 21:42:13 +0000 (+0000) Subject: To be safe (see ITS#5328), set hasSubordinates before be_has_subordinates() X-Git-Tag: ACLCHECK_0~549 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=18905416c9d03f684d66778cde7d0815689dd714;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 &&