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:
nelson%bolyard.com
2006-05-18 19:39:58 +00:00
parent cd18f85fef
commit 9e381a14e2

View File

@@ -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]) {