Fix notags/nosubtypes handling

This commit is contained in:
Howard Chu 2005-10-26 06:36:34 +00:00
parent b67c0123d2
commit 08cc40317b

View File

@ -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;
}