Fix ITS#1572, check for NULL objectClass in is_entry_objectclass

This commit is contained in:
Howard Chu 2002-01-31 14:10:19 +00:00
parent cb88cae005
commit 38d0af5399

View File

@ -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 */