Mercurial > dovecot > core-2.2
changeset 16278:17b037da123b
lib-storage: mail_update_pvt_modseq() shouldn't crash if there is no private index.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 11 Apr 2013 16:19:35 +0300 |
parents | c802c0b960e2 |
children | 309abf35676e |
files | src/lib-storage/index/index-mail.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/index/index-mail.c Thu Apr 11 13:38:16 2013 +0300 +++ b/src/lib-storage/index/index-mail.c Thu Apr 11 16:19:35 2013 +0300 @@ -1809,6 +1809,8 @@ void index_mail_update_pvt_modseq(struct mail *mail, uint64_t min_pvt_modseq) { + if (mail->box->view_pvt == NULL) + return; index_transaction_init_pvt(mail->transaction); mail_index_update_modseq(mail->transaction->itrans_pvt, mail->seq, min_pvt_modseq);