dovecot-2.2: log: read() errors weren't logged.

dovecot at dovecot.org dovecot at dovecot.org
Mon May 25 15:38:07 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/fdc03f6cc45d
changeset: 18752:fdc03f6cc45d
user:      Timo Sirainen <tss at iki.fi>
date:      Mon May 25 11:35:53 2015 -0400
description:
log: read() errors weren't logged.

diffstat:

 src/log/log-connection.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (17 lines):

diff -r b088511e1cdb -r fdc03f6cc45d src/log/log-connection.c
--- a/src/log/log-connection.c	Mon May 25 14:27:22 2015 +0000
+++ b/src/log/log-connection.c	Mon May 25 11:35:53 2015 -0400
@@ -351,10 +351,9 @@
 		}
 	}
 
-	if (log->input->eof)
-		log_connection_destroy(log);
-	else if (log->input->stream_errno != 0) {
-		i_error("read(log %s) failed: %m", log->default_prefix);
+	if (log->input->eof) {
+		if (log->input->stream_errno != 0)
+			i_error("read(log %s) failed: %m", log->default_prefix);
 		log_connection_destroy(log);
 	} else {
 		i_assert(!log->input->closed);


More information about the dovecot-cvs mailing list