Mercurial > dovecot > core-2.2
changeset 15475:507a4a57d7cd
mbox: Mailbox GUID generation re-opened the mailbox using wrong name, possibly crashing.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 15 Dec 2012 13:28:04 +0200 |
parents | b765a09d8c6c |
children | fdf755b505c3 |
files | src/lib-storage/index/mbox/mbox-storage.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);