From: Timo Sirainen Date: Wed, 23 Nov 2011 23:49:40 +0000 (+0200) Subject: login: Do engine cleanups _after_ finishing the used engine. X-Git-Tag: 2.1.rc1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de82dd40169f41214971f771fb9e103e2e432c8e;p=thirdparty%2Fdovecot%2Fcore.git login: Do engine cleanups _after_ finishing the used engine. --- diff --git a/src/login-common/ssl-proxy-openssl.c b/src/login-common/ssl-proxy-openssl.c index 02000235de..807f7765d2 100644 --- a/src/login-common/ssl-proxy-openssl.c +++ b/src/login-common/ssl-proxy-openssl.c @@ -1340,8 +1340,8 @@ void ssl_proxy_deinit(void) ssl_free_parameters(&ssl_params); SSL_CTX_free(ssl_client_ctx); if (ssl_engine != NULL) { - ENGINE_cleanup(); ENGINE_finish(ssl_engine); + ENGINE_cleanup(); } EVP_cleanup(); ERR_free_strings();