dovecot-2.2: imap: Disconnection log message incorrectly logged ...

dovecot at dovecot.org dovecot at dovecot.org
Wed Nov 18 10:41:10 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/3d209e0982bf
changeset: 19388:3d209e0982bf
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Nov 18 12:40:42 2015 +0200
description:
imap: Disconnection log message incorrectly logged "input/output" even if only "input" was set.

diffstat:

 src/imap/imap-client.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r b638e19d3bd4 -r 3d209e0982bf src/imap/imap-client.c
--- a/src/imap/imap-client.c	Wed Nov 18 12:39:13 2015 +0200
+++ b/src/imap/imap-client.c	Wed Nov 18 12:40:42 2015 +0200
@@ -288,7 +288,7 @@
 	}
 
 	cond = io_loop_find_fd_conditions(current_ioloop, client->fd_out);
-	if ((cond & (IO_READ | IO_WRITE)) != 0)
+	if ((cond & (IO_READ | IO_WRITE)) == (IO_READ | IO_WRITE))
 		cond_str = "input/output";
 	else if ((cond & IO_READ) != 0)
 		cond_str = "input";


More information about the dovecot-cvs mailing list