dovecot-2.0: lib-storage: Don't crash in mailbox_transaction_com...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jul 26 21:10:34 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/25a1c1739a63
changeset: 11900:25a1c1739a63
user: Timo Sirainen <tss at iki.fi>
date: Mon Jul 26 19:10:21 2010 +0100
description:
lib-storage: Don't crash in mailbox_transaction_commit() if plugin aborts transaction.
diffstat:
src/lib-storage/mail-storage.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 636d34f650c2 -r 25a1c1739a63 src/lib-storage/mail-storage.c
--- a/src/lib-storage/mail-storage.c Fri Jul 23 21:08:55 2010 +0100
+++ b/src/lib-storage/mail-storage.c Mon Jul 26 19:10:21 2010 +0100
@@ -1175,8 +1175,10 @@
/* Store changes temporarily so that plugins overriding
transaction_commit() can look at them. */
+ changes.pool = NULL;
ret = mailbox_transaction_commit_get_changes(t, &changes);
- pool_unref(&changes.pool);
+ if (changes.pool != NULL)
+ pool_unref(&changes.pool);
return ret;
}
More information about the dovecot-cvs
mailing list