]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-ssl-iostream: Fixed deinitialization of openssl library.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Fri, 7 Apr 2017 13:36:58 +0000 (15:36 +0200)
committerGitLab <gitlab@git.dovecot.net>
Wed, 28 Jun 2017 18:54:41 +0000 (21:54 +0300)
Previously, it also dereferenced the library when it was never initialized in the first place.

src/lib-ssl-iostream/iostream-openssl-context.c

index 229a880ffef51b7c7d069c541848a88be0031021..6a0fafa264a1afc254efa1a48789e68b2801babc 100644 (file)
@@ -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();
 }