[dovecot-cvs] dovecot/src/auth main.c,1.50,1.51

cras at dovecot.org cras at dovecot.org
Tue Dec 6 16:53:54 EET 2005


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv30227

Modified Files:
	main.c 
Log Message:
Deinitialize userdbs/passdbs first, so they can still generate auth failure
replies without crashing.



Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/main.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- main.c	2 Dec 2005 12:53:21 -0000	1.50
+++ main.c	6 Dec 2005 14:53:52 -0000	1.51
@@ -263,6 +263,8 @@
 
 static void main_deinit(void)
 {
+	auth_deinit(auth);
+
 	if (worker_client != NULL)
 		auth_worker_client_unref(worker_client);
 	else
@@ -271,7 +273,6 @@
         auth_worker_server_deinit();
 	auth_master_listeners_deinit();
 	auth_request_handler_deinit();
-	auth_deinit(auth);
 	mech_deinit();
 
         password_schemes_deinit();



More information about the dovecot-cvs mailing list