changeset 5404:fd57e9c99846 HEAD

crashcheck
author Timo Sirainen <tss@iki.fi>
date Sun, 25 Mar 2007 19:33:16 +0300
parents c7a3410a8f1f
children 22d04968449a
files src/lib-storage/index/index-transaction.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-storage/index/index-transaction.c	Sun Mar 25 19:26:09 2007 +0300
+++ b/src/lib-storage/index/index-transaction.c	Sun Mar 25 19:33:16 2007 +0300
@@ -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;
 }