summaryrefslogtreecommitdiffstats
path: root/security/nss/lib/smime/cmssigdata.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/nss/lib/smime/cmssigdata.c')
-rw-r--r--security/nss/lib/smime/cmssigdata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/nss/lib/smime/cmssigdata.c b/security/nss/lib/smime/cmssigdata.c
index 7dd6ea4e5..89080f4bb 100644
--- a/security/nss/lib/smime/cmssigdata.c
+++ b/security/nss/lib/smime/cmssigdata.c
@@ -476,7 +476,7 @@ NSS_CMSSignedData_SignerInfoCount(NSSCMSSignedData *sigd)
NSSCMSSignerInfo *
NSS_CMSSignedData_GetSignerInfo(NSSCMSSignedData *sigd, int i)
{
- if (!sigd) {
+ if (!sigd || !sigd->signerInfos) {
PORT_SetError(SEC_ERROR_INVALID_ARGS);
return NULL;
}
@@ -666,7 +666,7 @@ NSS_CMSSignedData_VerifySignerInfo(NSSCMSSignedData *sigd, int i,
SECOidTag oidTag;
SECStatus rv;
- if (!sigd) {
+ if (!sigd || !sigd->signerInfos) {
PORT_SetError(SEC_ERROR_INVALID_ARGS);
return SECFailure;
}