]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-imap-storage: Minor error logging cleanup/fix.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 18 May 2016 11:24:55 +0000 (14:24 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 18 May 2016 16:56:33 +0000 (19:56 +0300)
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).

src/lib-imap-storage/imap-msgpart.c

index c40627dc792166ec8b74e139dc0998d657f17eee..d109793e81d05d8c2153d8c87cd07a9597671189 100644 (file)
@@ -395,8 +395,8 @@ imap_msgpart_get_partial_header(struct mail *mail, struct istream *mail_input,
 
        if (message_get_header_size(input, &hdr_size, &has_nuls) < 0) {
                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;
        }