dovecot-2.2: lib-storage: mail_update_pvt_modseq() shouldn't cra...

dovecot at dovecot.org dovecot at dovecot.org
Thu Apr 11 16:19:43 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/17b037da123b
changeset: 16278:17b037da123b
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Apr 11 16:19:35 2013 +0300
description:
lib-storage: mail_update_pvt_modseq() shouldn't crash if there is no private index.

diffstat:

 src/lib-storage/index/index-mail.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r c802c0b960e2 -r 17b037da123b src/lib-storage/index/index-mail.c
--- 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);


More information about the dovecot-cvs mailing list