RT3053: Check for NULL before dereferencing
Reviewed-by: Tim Hudson <tjh@openssl.org>
This commit is contained in:
parent
6d6e8070c2
commit
6b3602882e
1 changed files with 4 additions and 0 deletions
|
@ -345,6 +345,8 @@ static STACK_OF(CMS_CertificateChoices)
|
|||
return &cms->d.signedData->certificates;
|
||||
|
||||
case NID_pkcs7_enveloped:
|
||||
if (cms->d.envelopedData->originatorInfo == NULL)
|
||||
return NULL;
|
||||
return &cms->d.envelopedData->originatorInfo->certificates;
|
||||
|
||||
default:
|
||||
|
@ -420,6 +422,8 @@ static STACK_OF(CMS_RevocationInfoChoice)
|
|||
return &cms->d.signedData->crls;
|
||||
|
||||
case NID_pkcs7_enveloped:
|
||||
if (cms->d.envelopedData->originatorInfo == NULL)
|
||||
return NULL;
|
||||
return &cms->d.envelopedData->originatorInfo->crls;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue