dovecot-1.0: mail_index_seq_array_lookup() didn't return idx_r c...

dovecot at dovecot.org dovecot at dovecot.org
Mon Aug 6 17:11:26 EEST 2007


details:   http://hg.dovecot.org/dovecot-1.0/rev/010e46d57349
changeset: 5367:010e46d57349
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Aug 06 17:11:21 2007 +0300
description:
mail_index_seq_array_lookup() didn't return idx_r correctly always, which
could have caused out-of-order mail_index_update_ext() calls to break.

diffstat:

1 file changed, 2 insertions(+)
src/lib-index/mail-index-transaction.c |    2 ++

diffs (12 lines):

diff -r 827ee7c5f14c -r 010e46d57349 src/lib-index/mail-index-transaction.c
--- a/src/lib-index/mail-index-transaction.c	Thu Aug 02 15:35:27 2007 +0300
+++ b/src/lib-index/mail-index-transaction.c	Mon Aug 06 17:11:21 2007 +0300
@@ -134,6 +134,8 @@ bool mail_index_seq_array_lookup(const a
 				return TRUE;
 			}
 		}
+		if (left_idx > idx)
+			idx++;
 	}
 
 	*idx_r = idx;


More information about the dovecot-cvs mailing list