From: Howard Chu Date: Wed, 26 Oct 2005 06:36:34 +0000 (+0000) Subject: Fix notags/nosubtypes handling X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~194 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=08cc40317b747367b7c8f5211caf06cb449ed11e;p=openldap Fix notags/nosubtypes handling --- diff --git a/servers/slapd/back-bdb/index.c b/servers/slapd/back-bdb/index.c index 0e17da25b7..e3c0fddc08 100644 --- a/servers/slapd/back-bdb/index.c +++ b/servers/slapd/back-bdb/index.c @@ -48,7 +48,7 @@ static AttrInfo *index_mask( /* has tagging option */ ai = bdb_attr_mask( be->be_private, desc->ad_type->sat_ad ); - if ( ai && ( ai->ai_indexmask ^ SLAP_INDEX_NOTAGS ) ) { + if ( ai && !( ai->ai_indexmask & SLAP_INDEX_NOTAGS ) ) { *atname = desc->ad_type->sat_cname; return ai; } @@ -61,7 +61,7 @@ static AttrInfo *index_mask( ai = bdb_attr_mask( be->be_private, at->sat_ad ); - if ( ai && ( ai->ai_indexmask ^ SLAP_INDEX_NOSUBTYPES ) ) { + if ( ai && !( ai->ai_indexmask & SLAP_INDEX_NOSUBTYPES ) ) { *atname = at->sat_cname; return ai; }