diff options
author | wtc%netscape.com <devnull@localhost> | 2002-11-26 22:18:56 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2002-11-26 22:18:56 +0000 |
commit | dc294ae96e56450ec519aba82c0ff264e3d658fd (patch) | |
tree | b3b9a24995100587786360f8e8d5de05024320fc | |
parent | fbf53500d162b5c682d85a92c7de63c42538fe84 (diff) | |
download | nss-hg-NSS_3_6_1_BETA3.tar.gz |
Merged the fix for bug 176667 on the NSS_3_6_BRANCH.nss_20021126NSS_3_6_1_BETA3
-rw-r--r-- | security/nss/lib/certhigh/certvfy.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/security/nss/lib/certhigh/certvfy.c b/security/nss/lib/certhigh/certvfy.c index 1f99d2879..d65f72fbb 100644 --- a/security/nss/lib/certhigh/certvfy.c +++ b/security/nss/lib/certhigh/certvfy.c @@ -388,6 +388,9 @@ loser: return STAN_GetCERTCertificate(chain[1]); /* return the 2nd */ } } else { + if (chain[0]) { + CERT_DestroyCertificate(cert); + } PORT_SetError (SEC_ERROR_UNKNOWN_ISSUER); } return NULL; |