[dovecot-cvs] dovecot/src/login-common main.c,1.33.2.5,1.33.2.6

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


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

Modified Files:
      Tag: branch_1_0
	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.33.2.5
retrieving revision 1.33.2.6
diff -u -d -r1.33.2.5 -r1.33.2.6
--- main.c	3 Dec 2006 13:50:42 -0000	1.33.2.5
+++ main.c	3 Jan 2007 22:59:52 -0000	1.33.2.6
@@ -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