summaryrefslogtreecommitdiff
path: root/security/nss/lib/smime
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-03-15 12:57:35 +0000
committerMoonchild <moonchild@palemoon.org>2021-03-15 12:57:35 +0000
commitfd9fc4ea60a66e33a57826bac996e1d1128c0e40 (patch)
tree1cbaea27ade626a7f7eddaa08eadaf63e3e5f589 /security/nss/lib/smime
parentd830832cb9466d6ce5b16e5610d3defbc3ec8053 (diff)
downloaduxp-fd9fc4ea60a66e33a57826bac996e1d1128c0e40.tar.gz
Issue #1693 - Update NSS to 3.52.1-RTM
Diffstat (limited to 'security/nss/lib/smime')
-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 7dd6ea4e54..89080f4bb0 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;
}