From db8a5116f65292d362c97cdc9725092233072537 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 19 Sep 2016 11:08:08 +0300 Subject: [PATCH] lib-ssl-iostream: The final fix to make the SSL plugin loading not fail.. --- src/lib-ssl-iostream/iostream-ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib-ssl-iostream/iostream-ssl.c b/src/lib-ssl-iostream/iostream-ssl.c index 5630fc4e9a..698e69260d 100644 --- a/src/lib-ssl-iostream/iostream-ssl.c +++ b/src/lib-ssl-iostream/iostream-ssl.c @@ -38,6 +38,7 @@ static int ssl_module_load(const char **error_r) if (module_dir_try_load_missing(&ssl_module, MODULE_DIR, plugin_name, &mod_set, error_r) < 0) return -1; + module_dir_init(ssl_module); if (!ssl_module_loaded) { *error_r = t_strdup_printf( "%s didn't call iostream_ssl_module_init() - SSL not initialized", @@ -45,7 +46,6 @@ static int ssl_module_load(const char **error_r) module_dir_unload(&ssl_module); return -1; } - module_dir_init(ssl_module); /* Destroy SSL module after (most of) the others. Especially lib-fs backends may still want to access SSL module in their own