]> git.sur5r.net Git - openldap/commitdiff
To be safe (see ITS#5328), set hasSubordinates before be_has_subordinates()
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 20 May 2009 21:42:13 +0000 (21:42 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 20 May 2009 21:42:13 +0000 (21:42 +0000)
servers/slapd/filterentry.c

index aff8da2cc4c3bf73a6863ddfb8bdaffe2b2b246c..1d3f4fe885a151e8127f341536de7572979df678 100644 (file)
@@ -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 &&