Eliminate more NULL pointer dereferences. Bug 207740.

This commit is contained in:
nelsonb%netscape.com 2003-06-05 04:59:38 +00:00
Родитель f1cd80acde
Коммит f4f2e9f053
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -433,12 +433,12 @@ cert_DecodeGeneralNames (PRArenaPool *arena,
}
currentName->l.next = head;
currentName->l.prev = tail;
tail = &(currentName->l);
(cert_get_prev_general_name(currentName))->l.next = tail;
tail = head->prev = tail->next = &(currentName->l);
encodedGenName++;
}
(cert_get_next_general_name(currentName))->l.prev = tail;
return cert_get_next_general_name(currentName);
if (currentName) {
return cert_get_next_general_name(currentName);
}
loser:
return NULL;
}