mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
Fix is_entry_objectclass flag comparisons (from Jason Townsend @ Apple)
This commit is contained in:
parent
8ee8248328
commit
1385f29ebc
@ -67,7 +67,7 @@ int is_entry_objectclass(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if( set_flags && ( e->e_ocflags & SLAP_OC__END )) {
|
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 */
|
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 New Issue
Block a user