ITS#7224 check *_names pointer before dereferencing

This commit is contained in:
Pierangelo Masarati 2012-04-10 00:46:06 +02:00
parent 829efa878a
commit d7d1789e80
2 changed files with 4 additions and 0 deletions

View file

@ -232,6 +232,8 @@ at_delete_names( AttributeType *at )
{
char **names = at->sat_names;
if (!names) return;
while (*names) {
struct aindexrec tmpair, *air;

View file

@ -400,6 +400,8 @@ oc_delete_names( ObjectClass *oc )
{
char **names = oc->soc_names;
if (!names) return;
while (*names) {
struct oindexrec tmpoir, *oir;