dovecot-2.2: lib-storage: Don't crash when trying to sync privat...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Nov 26 23:21:05 EET 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/c86b8807fa2f
changeset: 15409:c86b8807fa2f
user: Timo Sirainen <tss at iki.fi>
date: Mon Nov 26 23:16:41 2012 +0200
description:
lib-storage: Don't crash when trying to sync private index, if syncing had already failed.
diffstat:
src/lib-storage/index/index-sync.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 80a8bed29ad9 -r c86b8807fa2f src/lib-storage/index/index-sync.c
--- a/src/lib-storage/index/index-sync.c Mon Nov 26 23:16:00 2012 +0200
+++ b/src/lib-storage/index/index-sync.c Mon Nov 26 23:16:41 2012 +0200
@@ -387,7 +387,8 @@
/* sync private index if needed. do this after real sync to make sure
that all the new messages are added to the private index, so their
flags can be updated. */
- (void)index_storage_mailbox_sync_pvt(_ctx->box);
+ if (ret == 0)
+ (void)index_storage_mailbox_sync_pvt(_ctx->box);
/* update search results after private index is updated */
index_sync_search_results_update(ctx);
More information about the dovecot-cvs
mailing list