]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Crashfix on error handling.
authorTimo Sirainen <tss@iki.fi>
Sun, 4 Apr 2010 22:08:31 +0000 (01:08 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 4 Apr 2010 22:08:31 +0000 (01:08 +0300)
--HG--
branch : HEAD

src/lib-index/mail-transaction-log.c

index a4477abc7fe44d67683a07cb4dbaa27963b19dec..f3a4f3d0d8850755dc8b39c0d90acbad8f5b049c 100644 (file)
@@ -261,7 +261,7 @@ int mail_transaction_log_rotate(struct mail_transaction_log *log, bool reset)
                    problems in here. */
                if (fstat(log->head->fd, &st) < 0) {
                        mail_index_file_set_syscall_error(log->index,
-                               file->filepath, "fstat()");
+                               log->head->filepath, "fstat()");
                        return -1;
                }