diff options
author | nelsonb%netscape.com <devnull@localhost> | 2001-03-30 00:40:24 +0000 |
---|---|---|
committer | nelsonb%netscape.com <devnull@localhost> | 2001-03-30 00:40:24 +0000 |
commit | 55d91ebe35044899ee25aee68536c1417b19001b (patch) | |
tree | d0e511ae74b6b66f8559e59a5f663bc23f63cb66 /security/nss/cmd/strsclnt | |
parent | 89495286447875156f4468e4587e71f5c95f9e7a (diff) | |
download | nss-hg-55d91ebe35044899ee25aee68536c1417b19001b.tar.gz |
Fix leak of cert reference in cert authentication callback functions.
Diffstat (limited to 'security/nss/cmd/strsclnt')
-rw-r--r-- | security/nss/cmd/strsclnt/strsclnt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/nss/cmd/strsclnt/strsclnt.c b/security/nss/cmd/strsclnt/strsclnt.c index 5a4ce56b0..3bcfb894c 100644 --- a/security/nss/cmd/strsclnt/strsclnt.c +++ b/security/nss/cmd/strsclnt/strsclnt.c @@ -213,6 +213,7 @@ mySSLAuthCertificate(void *arg, PRFileDesc *fd, PRBool checkSig, if (rv == SECSuccess) { fputs("strsclnt: -- SSL: Server Certificate Validated.\n", stderr); } + CERT_DestroyCertificate(peerCert); /* error, if any, will be displayed by the Bad Cert Handler. */ return rv; } |