dovecot: Infinite looping fix.
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jan 30 18:41:41 EET 2008
details: http://hg.dovecot.org/dovecot/rev/52639b885d87
changeset: 7201:52639b885d87
user: Timo Sirainen <tss at iki.fi>
date: Wed Jan 30 18:41:37 2008 +0200
description:
Infinite looping fix.
diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-storage/index/index-sort.c | 3 ++-
diffs (13 lines):
diff -r c7f1cb8556be -r 52639b885d87 src/lib-storage/index/index-sort.c
--- a/src/lib-storage/index/index-sort.c Wed Jan 30 18:41:23 2008 +0200
+++ b/src/lib-storage/index/index-sort.c Wed Jan 30 18:41:37 2008 +0200
@@ -356,7 +356,8 @@ index_sort_add_ids_range(struct mail_sea
widening the area we're giving sort IDs. */
if (left_idx > 0) {
left_idx--;
- left_sort_id = nodes[left_idx].sort_id;
+ left_sort_id = left_idx == 0 ? 1 :
+ nodes[left_idx].sort_id;
i_assert(left_sort_id != 0);
}
More information about the dovecot-cvs
mailing list