Skip to content
Snippets Groups Projects
Commit 1385f29e authored by Howard Chu's avatar Howard Chu
Browse files

Fix is_entry_objectclass flag comparisons (from Jason Townsend @ Apple)

parent 8ee82483
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ int is_entry_objectclass(
}
if( set_flags && ( e->e_ocflags & SLAP_OC__END )) {
return (e->e_ocflags & oc->soc_flags) ? 1 : 0;
return (e->e_ocflags & oc->soc_flags) == oc->soc_flags;
}
/*
......@@ -105,7 +105,7 @@ int is_entry_objectclass(
}
e->e_ocflags |= SLAP_OC__END; /* We've finished this */
return (e->e_ocflags & oc->soc_flags);
return (e->e_ocflags & oc->soc_flags) == oc->soc_flags;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment