From: Howard Chu Date: Thu, 31 Jan 2002 14:10:19 +0000 (+0000) Subject: Fix ITS#1572, check for NULL objectClass in is_entry_objectclass X-Git-Tag: OPENLDAP_REL_ENG_2_1_BP~112 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=38d0af53997b37b4e5dfdffb2204eb242362e06c;p=openldap Fix ITS#1572, check for NULL objectClass in is_entry_objectclass --- 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 */