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:
nelson%bolyard.com 2006-05-18 19:38:59 +00:00
parent 0a6525e406
commit 780c599d61

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