mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 09:39:45 -05:00
Fix is_entry_objectclass flag comparisons (from Jason Townsend @ Apple)
This commit is contained in:
parent
8ee8248328
commit
1385f29ebc
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue