From Ross Meng: Fix a memory leak in X509 certificate validation.

This commit is contained in:
tteras 2009-04-29 10:50:01 +00:00
parent 85a5535229
commit ec20a1edf8
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: crypto_openssl.c,v 1.18 2009/04/20 13:22:41 tteras Exp $ */
/* $NetBSD: crypto_openssl.c,v 1.19 2009/04/29 10:50:01 tteras Exp $ */
/* Id: crypto_openssl.c,v 1.47 2006/05/06 20:42:09 manubsd Exp */
@ -510,7 +510,7 @@ eay_check_x509cert(cert, CApath, CAfile, local)
X509_STORE_CTX_set_flags (csc, X509_V_FLAG_CRL_CHECK_ALL);
#endif
error = X509_verify_cert(csc);
X509_STORE_CTX_cleanup(csc);
X509_STORE_CTX_free(csc);
/*
* if x509_verify_cert() is successful then the value of error is