don't try to dereference NULL pointer (ITS#5388)

This commit is contained in:
Pierangelo Masarati 2008-02-25 16:18:36 +00:00
parent 282fccbb3e
commit 31f06b91af

View File

@ -502,6 +502,10 @@ oc_next( ObjectClass **oc )
}
#endif
if ( *oc == NULL ) {
return 0;
}
*oc = LDAP_STAILQ_NEXT(*oc,soc_next);
return (*oc != NULL);