From 1385f29ebc119793012e6c65fd7fe5e5a96bcbea Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 18 Nov 2002 03:56:54 +0000 Subject: [PATCH] Fix is_entry_objectclass flag comparisons (from Jason Townsend @ Apple) --- servers/slapd/oc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5