In SEC_PKCS12DecoderGetCerts, don't dereference p12dcx until AFTER it has
been checked for NULL. Coverity bug 336971. r=alexei.volkov git-svn-id: svn://10.0.0.236/trunk@197944 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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]) {
|
||||
|
||||
Reference in New Issue
Block a user