Mercurial > dovecot > original-hg > dovecot-1.2
changeset 7962:465931d0a642 HEAD
Index modseq handling crashfix.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 28 Jun 2008 19:26:45 +0300 |
parents | 820cc75d6ccc |
children | 7760a30a5f7e |
files | src/lib-index/mail-transaction-log-file.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ /* 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;