dovecot-1.2: Index modseq handling crashfix.

dovecot at dovecot.org dovecot at dovecot.org
Sat Jun 28 19:26:57 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/465931d0a642
changeset: 7962:465931d0a642
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Jun 28 19:26:45 2008 +0300
description:
Index modseq handling crashfix.

diffstat:

1 file changed, 2 insertions(+), 1 deletion(-)
src/lib-index/mail-transaction-log-file.c |    3 ++-

diffs (13 lines):

diff -r 820cc75d6ccc -r 465931d0a642 src/lib-index/mail-transaction-log-file.c
--- a/src/lib-index/mail-transaction-log-file.c	Fri Jun 27 14:32:19 2008 +0300
+++ b/src/lib-index/mail-transaction-log-file.c	Sat Jun 28 19:26:45 2008 +0300
@@ -129,7 +129,8 @@ mail_transaction_log_file_skip_to_head(s
 		/* modseqs not used yet */
 		file->sync_offset = head_offset;
 		file->sync_highest_modseq = 0;
-	} else if (modseq_hdr->log_seq != file->hdr.file_seq) {
+	} else if (modseq_hdr == NULL ||
+		   modseq_hdr->log_seq != file->hdr.file_seq) {
 		/* highest_modseq not synced, start from beginning */
 		file->sync_offset = file->hdr.hdr_size;
 		file->sync_highest_modseq = file->hdr.initial_modseq;


More information about the dovecot-cvs mailing list