Mercurial > dovecot > core-2.2
changeset 20267:e0c9a4da066a
lib-imap-storage: Minor error logging cleanup/fix.
We read from input, not from mail_input. In theory it could have the actual
error instead of mail_input (although right now it couldn't).
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Wed, 18 May 2016 14:24:55 +0300 |
parents | bd22ff741f5d |
children | 60327526fd00 |
files | src/lib-imap-storage/imap-msgpart.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-imap-storage/imap-msgpart.c Wed May 18 18:41:33 2016 +0300 +++ b/src/lib-imap-storage/imap-msgpart.c Wed May 18 14:24:55 2016 +0300 @@ -396,8 +396,8 @@ if (message_get_header_size(input, &hdr_size, &has_nuls) < 0) { errno = input->stream_errno; mail_storage_set_critical(mail->box->storage, - "read(%s) failed: %s", i_stream_get_name(mail_input), - i_stream_get_error(mail_input)); + "read(%s) failed: %s", i_stream_get_name(input), + i_stream_get_error(input)); i_stream_unref(&input); return -1; }