From 4c304b9cc5d5eb678f686e7e6203dfc87610bccb Mon Sep 17 00:00:00 2001 From: "wtc%netscape.com" Date: Tue, 26 Nov 2002 22:18:56 +0000 Subject: [PATCH] Merged the fix for bug 176667 on the NSS_3_6_BRANCH. git-svn-id: svn://10.0.0.236/branches/NSS_3_6_BRANCH@134498 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/security/nss/lib/certhigh/certvfy.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozilla/security/nss/lib/certhigh/certvfy.c b/mozilla/security/nss/lib/certhigh/certvfy.c index 1f99d28797b..d65f72fbbfc 100644 --- a/mozilla/security/nss/lib/certhigh/certvfy.c +++ b/mozilla/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;