]> 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>
Tue, 14 Jun 2016 09:13:33 +0000 (12:13 +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 37e85b9ee9afc911e7aaa01d8a9b3b05b36c5726..3c719eeaba5ba326f7e4b01ef0bfe544b8191d78 100644 (file)
@@ -396,8 +396,8 @@ imap_msgpart_get_partial_header(struct mail *mail, struct istream *mail_input,
        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;
        }