From: Stephan Bosch Date: Fri, 7 Apr 2017 13:36:58 +0000 (+0200) Subject: lib-ssl-iostream: Fixed deinitialization of openssl library. X-Git-Tag: 2.3.0.rc1~1370 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=22cb9dbe001c6b5da20cafe947dc858d9cab0e74;p=thirdparty%2Fdovecot%2Fcore.git lib-ssl-iostream: Fixed deinitialization of openssl library. Previously, it also dereferenced the library when it was never initialized in the first place. --- diff --git a/src/lib-ssl-iostream/iostream-openssl-context.c b/src/lib-ssl-iostream/iostream-openssl-context.c index 229a880ffe..6a0fafa264 100644 --- a/src/lib-ssl-iostream/iostream-openssl-context.c +++ b/src/lib-ssl-iostream/iostream-openssl-context.c @@ -605,6 +605,8 @@ void openssl_iostream_context_deinit(struct ssl_iostream_context *ctx) void openssl_iostream_global_deinit(void) { + if (!ssl_global_initialized) + return; dovecot_openssl_common_global_unref(); }