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

tss at dovecot.org tss at dovecot.org
Sun Mar 25 19:33:18 EEST 2007


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

Modified Files:
	index-transaction.c 
Log Message:
crashcheck



Index: index-transaction.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-transaction.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- index-transaction.c	28 Dec 2006 20:52:32 -0000	1.18
+++ index-transaction.c	25 Mar 2007 16:33:16 -0000	1.19
@@ -70,6 +70,10 @@
 		(flags & MAILBOX_TRANSACTION_FLAG_EXTERNAL) != 0);
 
 	it = MAIL_STORAGE_TRANSACTION(t);
+	if (it == NULL) {
+		i_panic("mail storage transaction context mising for type %s",
+			box->storage->name);
+	}
 	it->flags = flags;
 	return &it->mailbox_ctx;
 }



More information about the dovecot-cvs mailing list