changeset 20327:09d9165726b7

dcrypt: Arm deinitialization code
author Aki Tuomi <aki.tuomi@dovecot.fi>
date Tue, 14 Jun 2016 12:30:27 +0300
parents 71285f4d97dd
children 7e016f5e8cb4
files src/lib-dcrypt/dcrypt.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-dcrypt/dcrypt.c	Tue Jun 14 12:08:49 2016 +0300
+++ b/src/lib-dcrypt/dcrypt.c	Tue Jun 14 12:30:27 2016 +0300
@@ -10,7 +10,9 @@
 {
 	struct module_dir_load_settings mod_set;
 
-	if (dcrypt_vfs != NULL) return TRUE;
+	if (dcrypt_vfs != NULL) {
+		return TRUE;
+	}
 	if (backend == NULL) backend = "openssl"; /* default for now */
 
 	const char *implementation = t_strconcat("dcrypt_",backend,NULL);
@@ -34,13 +36,12 @@
 	/* Destroy SSL module after(most of) the others. Especially lib-fs
 	   backends may still want to access SSL module in their own
 	   atexit-callbacks. */
-//	lib_atexit_priority(dcrypt_deinitialize, LIB_ATEXIT_PRIORITY_LOW);
+	lib_atexit_priority(dcrypt_deinitialize, LIB_ATEXIT_PRIORITY_LOW);
 	return TRUE;
 }
 
 void dcrypt_deinitialize(void)
 {
-	i_error("I got called");
 	if (dcrypt_module != NULL) {
 		dcrypt_module->deinit();
 		module_dir_unload(&dcrypt_module);