зеркало из https://github.com/mozilla/gecko-dev.git
Eliminate more NULL pointer dereferences. Bug 207740.
This commit is contained in:
Родитель
f1cd80acde
Коммит
f4f2e9f053
|
@ -433,12 +433,12 @@ cert_DecodeGeneralNames (PRArenaPool *arena,
|
||||||
}
|
}
|
||||||
currentName->l.next = head;
|
currentName->l.next = head;
|
||||||
currentName->l.prev = tail;
|
currentName->l.prev = tail;
|
||||||
tail = &(currentName->l);
|
tail = head->prev = tail->next = &(currentName->l);
|
||||||
(cert_get_prev_general_name(currentName))->l.next = tail;
|
|
||||||
encodedGenName++;
|
encodedGenName++;
|
||||||
}
|
}
|
||||||
(cert_get_next_general_name(currentName))->l.prev = tail;
|
if (currentName) {
|
||||||
return cert_get_next_general_name(currentName);
|
return cert_get_next_general_name(currentName);
|
||||||
|
}
|
||||||
loser:
|
loser:
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче