From: Dr. Stephen Henson Date: Sun, 1 Jun 2008 23:06:48 +0000 (+0000) Subject: Release engine reference when calling SSL_CTX_free(). X-Git-Tag: OpenSSL_0_9_8k^2~361 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bdfe932dca124c9fedb03711bbe1c961290262c0;p=oweals%2Fopenssl.git Release engine reference when calling SSL_CTX_free(). --- diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index bc6016194c..fac080c19d 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c @@ -156,6 +156,9 @@ #ifndef OPENSSL_NO_DH #include #endif +#ifndef OPENSSL_NO_ENGINE +#include +#endif const char *SSL_version_str=OPENSSL_VERSION_TEXT; @@ -1652,6 +1655,10 @@ void SSL_CTX_free(SSL_CTX *a) #ifndef OPENSSL_NO_PSK if (a->psk_identity_hint) OPENSSL_free(a->psk_identity_hint); +#endif +#ifndef OPENSSL_NO_ENGINE + if (a->client_cert_engine) + ENGINE_finish(a->client_cert_engine); #endif OPENSSL_free(a); }