dovecot: Don't crash if sync initialization fails.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Jan 20 09:13:27 EET 2008
details: http://hg.dovecot.org/dovecot/rev/f090b6bf8021
changeset: 7174:f090b6bf8021
user: Timo Sirainen <tss at iki.fi>
date: Sun Jan 20 09:13:23 2008 +0200
description:
Don't crash if sync initialization fails.
diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-storage/index/index-sync.c | 3 ++-
diffs (13 lines):
diff -r 9841a8563116 -r f090b6bf8021 src/lib-storage/index/index-sync.c
--- a/src/lib-storage/index/index-sync.c Sun Jan 20 08:54:57 2008 +0200
+++ b/src/lib-storage/index/index-sync.c Sun Jan 20 09:13:23 2008 +0200
@@ -320,7 +320,8 @@ int index_mailbox_sync_deinit(struct mai
if (ret == 0 && status_items != 0)
mailbox_get_status(_ctx->box, status_items, status_r);
- array_free(&ctx->flag_updates);
+ if (array_is_created(&ctx->flag_updates))
+ array_free(&ctx->flag_updates);
i_free(ctx);
return ret;
}
More information about the dovecot-cvs
mailing list