mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#7224 check *_names pointer before dereferencing
This commit is contained in:
parent
829efa878a
commit
d7d1789e80
2 changed files with 4 additions and 0 deletions
|
|
@ -232,6 +232,8 @@ at_delete_names( AttributeType *at )
|
|||
{
|
||||
char **names = at->sat_names;
|
||||
|
||||
if (!names) return;
|
||||
|
||||
while (*names) {
|
||||
struct aindexrec tmpair, *air;
|
||||
|
||||
|
|
|
|||
|
|
@ -400,6 +400,8 @@ oc_delete_names( ObjectClass *oc )
|
|||
{
|
||||
char **names = oc->soc_names;
|
||||
|
||||
if (!names) return;
|
||||
|
||||
while (*names) {
|
||||
struct oindexrec tmpoir, *oir;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue