[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-transaction.c, 1.7, 1.8
tss at dovecot.org
tss at dovecot.org
Tue Apr 17 19:03:50 EEST 2007
Update of /var/lib/cvs/dovecot/src/lib-storage/index/dbox
In directory talvi:/tmp/cvs-serv31536/lib-storage/index/dbox
Modified Files:
dbox-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: dbox-transaction.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-transaction.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- dbox-transaction.c 30 Mar 2007 19:08:12 -0000 1.7
+++ dbox-transaction.c 17 Apr 2007 16:03:48 -0000 1.8
@@ -64,7 +64,7 @@
static void dbox_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, DBOX_STORAGE_NAME) == 0) {
More information about the dovecot-cvs
mailing list