[dovecot-cvs] dovecot/src/login-common main.c,1.39,1.40

tss at dovecot.org tss at dovecot.org
Wed Jan 3 22:59:57 UTC 2007


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

Modified Files:
	main.c 
Log Message:
Don't keep a connection open to dovecot-auth when we're only proxying.


Index: main.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/login-common/main.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- main.c	15 Dec 2006 16:55:48 -0000	1.39
+++ main.c	3 Jan 2007 22:59:55 -0000	1.40
@@ -47,6 +47,9 @@
 		/* last login finished, close all communications
 		   to master process */
 		master_close();
+		/* we might still be proxying. close the connection to
+		   dovecot-auth, since it's not needed anymore. */
+		auth_client_free(&auth_client);
 	}
 }
 
@@ -336,7 +339,8 @@
 	ssl_proxy_deinit();
 	login_proxy_deinit();
 
-	auth_client_free(&auth_client);
+	if (auth_client != NULL)
+		auth_client_free(&auth_client);
 	clients_deinit();
 	master_deinit();
 



More information about the dovecot-cvs mailing list