dovecot-1.2: Crashfix / keyword handling fix when appending mess...

dovecot at dovecot.org dovecot at dovecot.org
Wed Jan 14 21:06:56 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/b920d841f8fe
changeset: 8627:b920d841f8fe
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jan 14 14:06:46 2009 -0500
description:
Crashfix / keyword handling fix when appending messages non-sorted (dbox rebuild).

diffstat:

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

diffs (17 lines):

diff -r a9dd29e7dc4f -r b920d841f8fe src/lib-index/mail-index-transaction.c
--- a/src/lib-index/mail-index-transaction.c	Wed Jan 14 13:56:01 2009 -0500
+++ b/src/lib-index/mail-index-transaction.c	Wed Jan 14 14:06:46 2009 -0500
@@ -469,11 +469,11 @@ mail_index_transaction_sort_appends_keyw
 	if (array_is_created(&t->keyword_updates)) {
 		updates = array_get_modifiable(&t->keyword_updates, &count);
 		for (i = 0; i < count; i++) {
-			if (array_is_created(&updates->add_seq)) {
+			if (array_is_created(&updates[i].add_seq)) {
 				sort_appends_seq_range(t, &updates[i].add_seq,
 						       old_to_newseq_map);
 			}
-			if (array_is_created(&updates->remove_seq)) {
+			if (array_is_created(&updates[i].remove_seq)) {
 				sort_appends_seq_range(t,
 						       &updates[i].remove_seq,
 						       old_to_newseq_map);


More information about the dovecot-cvs mailing list