diff options
author | wtc%netscape.com <devnull@localhost> | 2003-07-09 04:15:08 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2003-07-09 04:15:08 +0000 |
commit | 0808f351e8a0523d0a5e28e02c15850f606419f1 (patch) | |
tree | 19d279d6e0dec6e0102777a15aead42cc499050b | |
parent | f2ac9068c3f13e39f45002b69de28c4e2fe75764 (diff) | |
download | nss-hg-0808f351e8a0523d0a5e28e02c15850f606419f1.tar.gz |
Bug 212004: in CERT_IsUserCert we should test for a null cert->trust and
treat it as no trust. r=nelsonb.
Tag: NSS_3_8_BRANCH
-rw-r--r-- | security/nss/lib/certdb/certdb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/security/nss/lib/certdb/certdb.c b/security/nss/lib/certdb/certdb.c index 76c13e2de..b79e5f621 100644 --- a/security/nss/lib/certdb/certdb.c +++ b/security/nss/lib/certdb/certdb.c @@ -2629,9 +2629,10 @@ loser: PRBool CERT_IsUserCert(CERTCertificate* cert) { - if ( (cert->trust->sslFlags & CERTDB_USER ) || + if ( cert->trust && + ((cert->trust->sslFlags & CERTDB_USER ) || (cert->trust->emailFlags & CERTDB_USER ) || - (cert->trust->objectSigningFlags & CERTDB_USER ) ) { + (cert->trust->objectSigningFlags & CERTDB_USER )) ) { return PR_TRUE; } else { return PR_FALSE; |