dovecot-2.2: virtual plugin: Fixed assert-crash on mailbox_statu...

dovecot at dovecot.org dovecot at dovecot.org
Mon Sep 28 13:18:57 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/f2c25d5b6280
changeset: 19247:f2c25d5b6280
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 28 16:15:00 2015 +0300
description:
virtual plugin: Fixed assert-crash on mailbox_status() if virtual mailbox wasn't opened yet.
We no longer require that mailboxes must not be auto-opened.

diffstat:

 src/plugins/virtual/virtual-storage.c |  3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 1041fb241512 -r f2c25d5b6280 src/plugins/virtual/virtual-storage.c
--- a/src/plugins/virtual/virtual-storage.c	Mon Sep 28 16:13:00 2015 +0300
+++ b/src/plugins/virtual/virtual-storage.c	Mon Sep 28 16:15:00 2015 +0300
@@ -506,7 +506,6 @@
 	struct virtual_backend_box *const *bboxes;
 	unsigned int i, count;
 	struct mailbox_status status;
-	bool opened;
 
 	if (!mbox->box.opened) {
 		if (mailbox_open(&mbox->box) < 0)
@@ -518,12 +517,10 @@
 
 	bboxes = array_get(&mbox->backend_boxes, &count);
 	for (i = 0; i < count; i++) {
-		opened = bboxes[i]->box->opened;
 		if (mailbox_get_status(bboxes[i]->box, 0, &status) < 0) {
 			virtual_box_copy_error(&mbox->box, bboxes[i]->box);
 			return -1;
 		}
-		i_assert(bboxes[i]->box->opened == opened);
 		if (!status.have_guids)
 			mbox->have_guids = FALSE;
 		if (!status.have_save_guids)


More information about the dovecot-cvs mailing list