]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
SORT: Fixed assert-crash.
authorTimo Sirainen <tss@iki.fi>
Sun, 20 Jul 2008 14:42:57 +0000 (17:42 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 20 Jul 2008 14:42:57 +0000 (17:42 +0300)
--HG--
branch : HEAD

src/lib-storage/index/index-sort-string.c

index 9ed522475acfd19a5db7a448bd4c0a3670cc361d..12ad0902eb9e1e2f065903614f4dec0c22204c53 100644 (file)
@@ -534,7 +534,7 @@ index_sort_add_ids_range(struct sort_string_context *ctx,
                        i_assert(right_idx == rightmost_idx);
                        right_sort_id = (uint32_t)-1;
                }
-               i_assert(left_sort_id < right_sort_id);
+               i_assert(left_sort_id <= right_sort_id);
 
                if (diff == right_sort_id - left_sort_id) {
                        /* we did nothing, but there's still not enough space.