dovecot-2.2: lib-index: Fixed detecting broken strmap index file...

dovecot at dovecot.org dovecot at dovecot.org
Wed May 7 17:22:23 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/0e8ddc1bfe8d
changeset: 17340:0e8ddc1bfe8d
user:      Teemu Huovila <teemu.huovila at dovecot.fi>
date:      Wed May 07 20:21:02 2014 +0300
description:
lib-index: Fixed detecting broken strmap index file (thread index).

diffstat:

 src/lib-index/mail-index-strmap.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 78fd8b7d25e9 -r 0e8ddc1bfe8d src/lib-index/mail-index-strmap.c
--- a/src/lib-index/mail-index-strmap.c	Wed May 07 20:18:39 2014 +0300
+++ b/src/lib-index/mail-index-strmap.c	Wed May 07 20:21:02 2014 +0300
@@ -561,7 +561,7 @@
 			/* this block is done */
 			return 0;
 		}
-		if (mail_index_strmap_read_packed(ctx, &uid_diff) < 0)
+		if (mail_index_strmap_read_packed(ctx, &uid_diff) <= 0)
 			return -1;
 
 		ctx->rec.uid += uid_diff;


More information about the dovecot-cvs mailing list