[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-transaction.c, 1.19, 1.20

tss at dovecot.org tss at dovecot.org
Tue Apr 17 19:03:51 EEST 2007


Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv31536/lib-storage/index/mbox

Modified Files:
	mbox-transaction.c 
Log Message:
Map mailbox to mail_index_view, not to mail_index. Fixes crashes when the
same mailbox was opened multiple times.



Index: mbox-transaction.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-transaction.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- mbox-transaction.c	30 Mar 2007 19:08:12 -0000	1.19
+++ mbox-transaction.c	17 Apr 2007 16:03:49 -0000	1.20
@@ -79,7 +79,7 @@
 
 static void mbox_transaction_created(struct mail_index_transaction *t)
 {
-	struct mailbox *box = MAIL_STORAGE_CONTEXT(t->view->index);
+	struct mailbox *box = MAIL_STORAGE_CONTEXT(t->view);
 
 	/* index can be for mailbox list index, in which case box=NULL */
 	if (box != NULL && strcmp(box->storage->name, MBOX_STORAGE_NAME) == 0) {



More information about the dovecot-cvs mailing list