mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-19 14:30:57 +08:00
don't try to dereference NULL pointer (ITS#5388)
This commit is contained in:
parent
282fccbb3e
commit
31f06b91af
@ -502,6 +502,10 @@ oc_next( ObjectClass **oc )
|
||||
}
|
||||
#endif
|
||||
|
||||
if ( *oc == NULL ) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
*oc = LDAP_STAILQ_NEXT(*oc,soc_next);
|
||||
|
||||
return (*oc != NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user