[dovecot-cvs] dovecot/src/login-common main.c,1.46,1.47

tss at dovecot.org tss at dovecot.org
Sun Mar 18 16:08:30 EET 2007


Update of /var/lib/cvs/dovecot/src/login-common
In directory talvi:/tmp/cvs-serv24001/login-common

Modified Files:
	main.c 
Log Message:
Call auth_client_reconnect() when the last client has disconnected to make
sure all the memory used by the auth connections get cleared.



Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/login-common/main.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- main.c	18 Mar 2007 03:09:51 -0000	1.46
+++ main.c	18 Mar 2007 14:08:27 -0000	1.47
@@ -51,6 +51,13 @@
 		   dovecot-auth, since it's not needed anymore. */
 		if (auth_client != NULL)
 			auth_client_free(&auth_client);
+	} else if (clients_get_count() == 0) {
+		/* make sure we clear all the memory used by the
+		   authentication connections. also this makes sure that if
+		   this connection's authentication was finished but the master
+		   login wasn't, the next connection won't be able to log in
+		   as this user by finishing the master login. */
+		auth_client_reconnect(auth_client);
 	}
 }
 



More information about the dovecot-cvs mailing list