dovecot-2.2: mbox: Mailbox GUID generation re-opened the mailbox...

dovecot at dovecot.org dovecot at dovecot.org
Sat Dec 15 13:28:09 EET 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/507a4a57d7cd
changeset: 15475:507a4a57d7cd
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Dec 15 13:28:04 2012 +0200
description:
mbox: Mailbox GUID generation re-opened the mailbox using wrong name, possibly crashing.

diffstat:

 src/lib-storage/index/mbox/mbox-storage.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r b765a09d8c6c -r 507a4a57d7cd src/lib-storage/index/mbox/mbox-storage.c
--- a/src/lib-storage/index/mbox/mbox-storage.c	Sat Dec 15 13:26:48 2012 +0200
+++ b/src/lib-storage/index/mbox/mbox-storage.c	Sat Dec 15 13:28:04 2012 +0200
@@ -631,7 +631,7 @@
 		int ret;
 
 		i_assert(mbox->mbox_lock_type == F_UNLCK);
-		box2 = mailbox_alloc(mbox->box.list, mbox->box.name, 0);
+		box2 = mailbox_alloc(mbox->box.list, mbox->box.vname, 0);
 		ret = mailbox_sync(box2, 0);
 		mbox2 = (struct mbox_mailbox *)box2;
 		memcpy(guid_r, mbox2->mbox_hdr.mailbox_guid, GUID_128_SIZE);


More information about the dovecot-cvs mailing list