Skip to content

Commit

Permalink
lib-index: Fix crash in mail_transaction_log_view_set_all() error han…
Browse files Browse the repository at this point in the history
…dling
  • Loading branch information
sirainen committed May 24, 2017
1 parent bb61249 commit 9b58d1b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib-index/mail-transaction-log-view.c
Expand Up @@ -373,9 +373,9 @@ int mail_transaction_log_view_set_all(struct mail_transaction_log_view *view)
if (first == NULL) {
/* index wasn't reset after corruption was found */
i_assert(reason != NULL);
mail_index_set_error(file->log->index,
mail_index_set_error(view->log->index,
"Failed to map transaction log %s for all-view: %s",
file->filepath, reason);
view->log->filepath, reason);
return -1;
}

Expand All @@ -400,9 +400,9 @@ int mail_transaction_log_view_set_all(struct mail_transaction_log_view *view)

if (mail_transaction_log_file_get_highest_modseq_at(view->cur,
view->cur_offset, &view->prev_modseq, &reason) < 0) {
mail_index_set_error(file->log->index,
mail_index_set_error(view->log->index,
"Failed to get modseq in %s for all-view: %s",
file->filepath, reason);
view->log->filepath, reason);
return -1;
}
return 0;
Expand Down

0 comments on commit 9b58d1b

Please sign in to comment.