[Bug 334328] nsspkcs5_PKCS12PBE: Variable "A" tracked as NULL was dereferenced. r=nelson
This commit is contained in:
alexei.volkov.bugs%sun.com 2006-04-22 01:13:15 +00:00
Родитель e5c5562641
Коммит 04cf2a1ef8
1 изменённых файлов: 9 добавлений и 7 удалений

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

@ -546,13 +546,15 @@ loser:
PORT_FreeArena(arena, PR_TRUE);
}
/* if i != c, then we didn't complete the loop above and must of failed
* somwhere along the way */
if (i != c) {
SECITEM_ZfreeItem(A,PR_TRUE);
A = NULL;
} else {
A->len = bytesNeeded;
if (A) {
/* if i != c, then we didn't complete the loop above and must of failed
* somwhere along the way */
if (i != c) {
SECITEM_ZfreeItem(A,PR_TRUE);
A = NULL;
} else {
A->len = bytesNeeded;
}
}
return A;