dovecot-2.0: lib-master: Fixed checking if login connection was ...

dovecot at dovecot.org dovecot at dovecot.org
Wed Apr 7 11:33:30 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/c2a1163e584f
changeset: 11104:c2a1163e584f
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Apr 07 11:33:28 2010 +0300
description:
lib-master: Fixed checking if login connection was already closed.

diffstat:

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

diffs (24 lines):

diff -r 063a584858bf -r c2a1163e584f src/lib-master/master-login.c
--- a/src/lib-master/master-login.c	Wed Apr 07 10:12:09 2010 +0300
+++ b/src/lib-master/master-login.c	Wed Apr 07 11:33:28 2010 +0300
@@ -18,7 +18,7 @@
 #define MASTER_LOGIN_POSTLOGIN_TIMEOUT_MSECS (60*1000)
 
 #define master_login_conn_is_closed(conn) \
-	((conn)->output == NULL)
+	((conn)->fd == -1)
 
 struct master_login_connection {
 	struct master_login_connection *prev, *next;
@@ -409,10 +409,8 @@
 
 static void master_login_conn_close(struct master_login_connection *conn)
 {
-	if (master_login_conn_is_closed(conn)) {
-		/* already closed */
+	if (master_login_conn_is_closed(conn))
 		return;
-	}
 
 	DLLIST_REMOVE(&conn->login->conns, conn);
 


More information about the dovecot-cvs mailing list