]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login: Do engine cleanups _after_ finishing the used engine.
authorTimo Sirainen <tss@iki.fi>
Wed, 23 Nov 2011 23:49:40 +0000 (01:49 +0200)
committerTimo Sirainen <tss@iki.fi>
Wed, 23 Nov 2011 23:49:40 +0000 (01:49 +0200)
src/login-common/ssl-proxy-openssl.c

index 02000235de93088eef6a0553a694cae7e7c2e716..807f7765d2df4c9eb48dd4fcb9226a9dd94d7d4e 100644 (file)
@@ -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();