dovecot-2.0: lib-storage: When "Recent flags state corrupted" ha...

dovecot at dovecot.org dovecot at dovecot.org
Fri Jun 10 19:11:08 EEST 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/3e1ee816271d
changeset: 12848:3e1ee816271d
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jun 10 19:11:00 2011 +0300
description:
lib-storage: When "Recent flags state corrupted" happens, avoid assert-crashing afterwards.

diffstat:

 src/lib-storage/index/index-sync.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 778067e9ccc2 -r 3e1ee816271d src/lib-storage/index/index-sync.c
--- a/src/lib-storage/index/index-sync.c	Wed Jun 08 16:05:32 2011 +0300
+++ b/src/lib-storage/index/index-sync.c	Fri Jun 10 19:11:00 2011 +0300
@@ -44,6 +44,7 @@
 			"Recent flags state corrupted for mailbox %s",
 			box->vname);
 		array_clear(&ibox->recent_flags);
+		ibox->recent_flags_count = 0;
 	}
 	ibox->recent_flags_prev_uid = uid;
 


More information about the dovecot-cvs mailing list