dovecot-2.2: lib-storage: Don't crash in mailbox_is_inconsistent...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Dec 8 19:02:19 EET 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/0595d54ab34a
changeset: 17041:0595d54ab34a
user: Timo Sirainen <tss at iki.fi>
date: Sun Dec 08 19:02:12 2013 +0200
description:
lib-storage: Don't crash in mailbox_is_inconsistent() if mailbox hasn't been opened.
diffstat:
src/lib-storage/index/index-storage.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r d2ad697ba810 -r 0595d54ab34a src/lib-storage/index/index-storage.c
--- a/src/lib-storage/index/index-storage.c Sun Dec 08 19:00:31 2013 +0200
+++ b/src/lib-storage/index/index-storage.c Sun Dec 08 19:02:12 2013 +0200
@@ -760,7 +760,8 @@
bool index_storage_is_inconsistent(struct mailbox *box)
{
- return mail_index_view_is_inconsistent(box->view);
+ return box->view != NULL &&
+ mail_index_view_is_inconsistent(box->view);
}
void index_save_context_free(struct mail_save_context *ctx)
More information about the dovecot-cvs
mailing list