From: Howard Chu Date: Mon, 18 Nov 2002 03:56:54 +0000 (+0000) Subject: Fix is_entry_objectclass flag comparisons (from Jason Townsend @ Apple) X-Git-Tag: NO_SLAP_OP_BLOCKS~797 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1385f29ebc119793012e6c65fd7fe5e5a96bcbea;p=openldap Fix is_entry_objectclass flag comparisons (from Jason Townsend @ Apple) --- diff --git a/servers/slapd/oc.c b/servers/slapd/oc.c index 4ce2b8b66a..8dbe1b29ea 100644 --- a/servers/slapd/oc.c +++ b/servers/slapd/oc.c @@ -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; }