From 08cc40317b747367b7c8f5211caf06cb449ed11e Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 26 Oct 2005 06:36:34 +0000 Subject: [PATCH] Fix notags/nosubtypes handling --- servers/slapd/back-bdb/index.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5