dovecot: Assert-crashfix

dovecot at dovecot.org dovecot at dovecot.org
Sat Oct 6 02:25:37 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/da3093d9f572
changeset: 6532:da3093d9f572
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Oct 06 02:25:33 2007 +0300
description:
Assert-crashfix

diffstat:

1 file changed, 3 insertions(+), 1 deletion(-)
src/lib-storage/index/index-sort.c |    4 +++-

diffs (21 lines):

diff -r d747bfbda43c -r da3093d9f572 src/lib-storage/index/index-sort.c
--- a/src/lib-storage/index/index-sort.c	Sat Oct 06 02:16:56 2007 +0300
+++ b/src/lib-storage/index/index-sort.c	Sat Oct 06 02:25:33 2007 +0300
@@ -667,6 +667,7 @@ void index_sort_list_add(struct mail_sea
 	const struct mail_index_header *hdr;
 	const void *data;
 	struct mail_sort_node node;
+	uint32_t last_seq;
 
 	i_assert(mail->transaction == program->t);
 
@@ -708,7 +709,8 @@ void index_sort_list_add(struct mail_sea
 
 	/* add the nodes in the middle */
 	node.seq = program->last_sorted_seq + 1;
-	for (; node.seq <= program->prev_seq; node.seq++) {
+	last_seq = program->prev_seq;
+	for (; node.seq <= last_seq; node.seq++) {
 		mail_index_lookup_ext(t->trans_view, mail->seq, program->ext_id,
 				      &data, NULL);
 


More information about the dovecot-cvs mailing list