dovecot: seq_range_array_remove_range() sometimes didn't remove ...

dovecot at dovecot.org dovecot at dovecot.org
Thu Jul 19 05:34:44 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/a7dca74c0978
changeset: 6102:a7dca74c0978
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jul 19 05:34:41 2007 +0300
description:
seq_range_array_remove_range() sometimes didn't remove one sequence from the
middle.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib/seq-range-array.c |    2 +-

diffs (12 lines):

diff -r 6805ccf0b82e -r a7dca74c0978 src/lib/seq-range-array.c
--- a/src/lib/seq-range-array.c	Thu Jul 19 04:47:25 2007 +0300
+++ b/src/lib/seq-range-array.c	Thu Jul 19 05:34:41 2007 +0300
@@ -190,7 +190,7 @@ unsigned int seq_range_array_remove_rang
 
 	if (seq_range_array_remove(array, seq2--))
 		remove_count++;
-	if (seq1 == seq2)
+	if (seq1 > seq2)
 		return remove_count;
 
 	/* find the beginning */


More information about the dovecot-cvs mailing list