dovecot-2.0: lib-master: Client connection counting fix.

dovecot at dovecot.org dovecot at dovecot.org
Wed Apr 7 11:58:45 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/c0fe14f76760
changeset: 11107:c0fe14f76760
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Apr 07 11:58:00 2010 +0300
description:
lib-master: Client connection counting fix.

diffstat:

 src/lib-master/master-login.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 085253f549f8 -r c0fe14f76760 src/lib-master/master-login.c
--- a/src/lib-master/master-login.c	Wed Apr 07 11:51:56 2010 +0300
+++ b/src/lib-master/master-login.c	Wed Apr 07 11:58:00 2010 +0300
@@ -420,9 +420,6 @@
 	if (close(conn->fd) < 0)
 		i_error("close(master login) failed: %m");
 	conn->fd = -1;
-
-	if (!conn->login_success)
-		master_service_client_connection_destroyed(conn->login->service);
 }
 
 static void master_login_conn_unref(struct master_login_connection **_conn)
@@ -437,6 +434,9 @@
 	*_conn = NULL;
 	master_login_conn_close(conn);
 	o_stream_unref(&conn->output);
+
+	if (!conn->login_success)
+		master_service_client_connection_destroyed(conn->login->service);
 	i_free(conn);
 }
 


More information about the dovecot-cvs mailing list