diff --git a/security/nss/lib/pk11wrap/pk11cert.c b/security/nss/lib/pk11wrap/pk11cert.c index 1b4691b0dc2e..3fca0a510640 100644 --- a/security/nss/lib/pk11wrap/pk11cert.c +++ b/security/nss/lib/pk11wrap/pk11cert.c @@ -2095,7 +2095,9 @@ PK11_FortezzaHasKEA(CERTCertificate *cert) { } oid = SECOID_FindOID(&cert->subjectPublicKeyInfo.algorithm.algorithm); - + if (!oid) { + return PR_FALSE; + } return (PRBool)((oid->offset == SEC_OID_MISSI_KEA_DSS_OLD) || (oid->offset == SEC_OID_MISSI_KEA_DSS) ||