Mercurial > dovecot > core-2.2
changeset 18752:fdc03f6cc45d
log: read() errors weren't logged.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 25 May 2015 11:35:53 -0400 |
parents | b088511e1cdb |
children | dd2015e1362f |
files | src/log/log-connection.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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);