From: Timo Sirainen Date: Sat, 28 Jun 2008 16:26:45 +0000 (+0300) Subject: Index modseq handling crashfix. X-Git-Tag: 1.2.alpha1~199 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0bf3eac1110a902e7ec7e695c64e8e46c114e623;p=thirdparty%2Fdovecot%2Fcore.git Index modseq handling crashfix. --HG-- branch : HEAD --- diff --git a/src/lib-index/mail-transaction-log-file.c b/src/lib-index/mail-transaction-log-file.c index d03fc77805..15860534a7 100644 --- a/src/lib-index/mail-transaction-log-file.c +++ b/src/lib-index/mail-transaction-log-file.c @@ -129,7 +129,8 @@ mail_transaction_log_file_skip_to_head(struct mail_transaction_log_file *file) /* 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;