dovecot-2.2: lib-storage: Another fix to using index_storage_mai...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Sep 3 17:56:20 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/edc402c28fe7
changeset: 19082:edc402c28fe7
user: Timo Sirainen <tss at iki.fi>
date: Thu Sep 03 20:55:18 2015 +0300
description:
lib-storage: Another fix to using index_storage_mailbox_close() without an opened view.
Calling mail_index_close() without mail_index_open() caused it to
assert-crash.
diffstat:
src/lib-storage/index/index-storage.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (16 lines):
diff -r bed46aaaa769 -r edc402c28fe7 src/lib-storage/index/index-storage.c
--- a/src/lib-storage/index/index-storage.c Thu Sep 03 20:54:27 2015 +0300
+++ b/src/lib-storage/index/index-storage.c Thu Sep 03 20:55:18 2015 +0300
@@ -362,9 +362,10 @@
mail_index_view_close(&box->view_pvt);
if (box->index_pvt != NULL)
mail_index_close(box->index_pvt);
- if (box->view != NULL)
+ if (box->view != NULL) {
mail_index_view_close(&box->view);
- mail_index_close(box->index);
+ mail_index_close(box->index);
+ }
box->cache = NULL;
ibox->keyword_names = NULL;
More information about the dovecot-cvs
mailing list