[dovecot-cvs] dovecot: Crashfix for error conditions
dovecot at dovecot.org
dovecot at dovecot.org
Tue May 22 21:32:19 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/aff5fb7bb580
changeset: 5651:aff5fb7bb580
user: Timo Sirainen <tss at iki.fi>
date: Tue May 22 21:32:10 2007 +0300
description:
Crashfix for error conditions
diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-index/mail-index-sync.c | 3 ++-
diffs (13 lines):
diff -r e5f0e8cf6089 -r aff5fb7bb580 src/lib-index/mail-index-sync.c
--- a/src/lib-index/mail-index-sync.c Tue May 22 21:28:19 2007 +0300
+++ b/src/lib-index/mail-index-sync.c Tue May 22 21:32:10 2007 +0300
@@ -703,7 +703,8 @@ int mail_index_sync_commit(struct mail_i
void mail_index_sync_rollback(struct mail_index_sync_ctx **ctx)
{
- mail_index_transaction_rollback(&(*ctx)->ext_trans);
+ if ((*ctx)->ext_trans != NULL)
+ mail_index_transaction_rollback(&(*ctx)->ext_trans);
mail_index_sync_end(ctx);
}
More information about the dovecot-cvs
mailing list