mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-27 18:19:52 -05:00
don't try to dereference NULL pointer (ITS#5388)
This commit is contained in:
parent
282fccbb3e
commit
31f06b91af
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Reference in a new issue