diff options
author | wtc%netscape.com <devnull@localhost> | 2002-03-05 15:49:33 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2002-03-05 15:49:33 +0000 |
commit | 77f464d1a071109efca048dcd558786120f8dbf3 (patch) | |
tree | 26e4479565cfd851267a50d9eaa58d7c64630ce2 | |
parent | 909ad8680bb1438b0da2d0e810208c5928310b72 (diff) | |
download | nss-hg-77f464d1a071109efca048dcd558786120f8dbf3.tar.gz |
Bugzilla bug 128915: the first part of the previous change is not
necessary, so replace it with an assertion. r=mcgreer.
-rw-r--r-- | security/nss/lib/certdb/stanpcertdb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/nss/lib/certdb/stanpcertdb.c b/security/nss/lib/certdb/stanpcertdb.c index 668ca85ea..20940b3e9 100644 --- a/security/nss/lib/certdb/stanpcertdb.c +++ b/security/nss/lib/certdb/stanpcertdb.c @@ -714,7 +714,8 @@ CERT_SaveSMimeProfile(CERTCertificate *cert, SECItem *emailProfile, cc = c->object.cryptoContext; if (cc != NULL) { stanProfile = nssCryptoContext_FindSMIMEProfileForCertificate(cc, c); - if (stanProfile && stanProfile->profileData) { + if (stanProfile) { + PORT_Assert(stanProfile->profileData); SECITEM_FROM_NSSITEM(&oldprof, stanProfile->profileData); oldProfile = &oldprof; } |