diff options
author | jpierre%netscape.com <devnull@localhost> | 2003-12-03 02:42:08 +0000 |
---|---|---|
committer | jpierre%netscape.com <devnull@localhost> | 2003-12-03 02:42:08 +0000 |
commit | 5706f389c488932628920c6df0fa108db331039d (patch) | |
tree | f903c0715fe55af820b251c390389b3632c727c2 | |
parent | 5463fd04cefe3c161af001c2eb0346b49ff6660b (diff) | |
download | nss-hg-5706f389c488932628920c6df0fa108db331039d.tar.gz |
Fix for 54061 - null pointer check . r=nelsonb
-rw-r--r-- | security/nss/lib/smime/cmssiginfo.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/security/nss/lib/smime/cmssiginfo.c b/security/nss/lib/smime/cmssiginfo.c index f2c13d348..13e5a241e 100644 --- a/security/nss/lib/smime/cmssiginfo.c +++ b/security/nss/lib/smime/cmssiginfo.c @@ -513,6 +513,12 @@ NSS_CMSSignerInfo_GetDigestAlgTag(NSSCMSSignerInfo *signerinfo) { SECOidData *algdata; + PORT_Assert(signerinfo); + if (!signerinfo) { + PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); + return SEC_OID_UNKNOWN; + } + algdata = SECOID_FindOID (&(signerinfo->digestAlg.algorithm)); if (algdata != NULL) return algdata->offset; |