dovecot-2.2: lib-storage: Allow index_storage_mailbox_close() to...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Sep 3 17:00:17 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/83fe8ab89c0e
changeset: 19079:83fe8ab89c0e
user: Timo Sirainen <tss at iki.fi>
date: Thu Sep 03 19:58:39 2015 +0300
description:
lib-storage: Allow index_storage_mailbox_close() to be called without an opened view.
Some failing mailbox_open() call may leave it in such a state.
diffstat:
src/lib-storage/index/index-storage.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 7ac9ec913a39 -r 83fe8ab89c0e src/lib-storage/index/index-storage.c
--- a/src/lib-storage/index/index-storage.c Thu Sep 03 16:04:26 2015 +0300
+++ b/src/lib-storage/index/index-storage.c Thu Sep 03 19:58:39 2015 +0300
@@ -362,7 +362,8 @@
mail_index_view_close(&box->view_pvt);
if (box->index_pvt != NULL)
mail_index_close(box->index_pvt);
- mail_index_view_close(&box->view);
+ if (box->view != NULL)
+ mail_index_view_close(&box->view);
mail_index_close(box->index);
box->cache = NULL;
More information about the dovecot-cvs
mailing list