From 38d0af53997b37b4e5dfdffb2204eb242362e06c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 31 Jan 2002 14:10:19 +0000 Subject: [PATCH] Fix ITS#1572, check for NULL objectClass in is_entry_objectclass --- servers/slapd/oc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/servers/slapd/oc.c b/servers/slapd/oc.c index 3a4c48d2c5..11a143e958 100644 --- a/servers/slapd/oc.c +++ b/servers/slapd/oc.c @@ -92,8 +92,10 @@ int is_entry_objectclass( if ( objectClass == oc && !set_flags ) { return 1; } - - e->e_ocflags |= objectClass->soc_flags; + + if ( objectClass != NULL ) { + e->e_ocflags |= objectClass->soc_flags; + } } e->e_ocflags |= SLAP_OC__END; /* We've finished this */