mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
Fix ITS#1572, check for NULL objectClass in is_entry_objectclass
This commit is contained in:
parent
cb88cae005
commit
38d0af5399
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user