mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-23 02:47:07 +00:00
In SEC_PKCS12DecoderGetCerts, don't dereference p12dcx until AFTER it has
been checked for NULL. Coverity bug 336971. r=alexei.volkov
This commit is contained in:
parent
0a6525e406
commit
780c599d61
@ -2540,7 +2540,7 @@ CERTCertList *
|
||||
SEC_PKCS12DecoderGetCerts(SEC_PKCS12DecoderContext *p12dcx)
|
||||
{
|
||||
CERTCertList *certList = NULL;
|
||||
sec_PKCS12SafeBag **safeBags = p12dcx->safeBags;
|
||||
sec_PKCS12SafeBag **safeBags;
|
||||
int i;
|
||||
|
||||
if (!p12dcx || !p12dcx->safeBags || !p12dcx->safeBags[0]) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user