dovecot-2.2: lib-storage: Fixed assert-crash when looking up pri...

dovecot at dovecot.org dovecot at dovecot.org
Wed May 7 13:42:13 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/774e486a94ab
changeset: 17332:774e486a94ab
user:      Timo Sirainen <tss at iki.fi>
date:      Wed May 07 16:41:34 2014 +0300
description:
lib-storage: Fixed assert-crash when looking up private flags for a mail being saved.

diffstat:

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

diffs (15 lines):

diff -r ed6e472cab0e -r 774e486a94ab src/lib-storage/index/index-mail.c
--- a/src/lib-storage/index/index-mail.c	Wed May 07 16:36:54 2014 +0300
+++ b/src/lib-storage/index/index-mail.c	Wed May 07 16:41:34 2014 +0300
@@ -153,6 +153,11 @@
 		/* no private view (set by view syncing) -> no private flags */
 		return FALSE;
 	}
+	if (_mail->saving) {
+		/* mail is still being saved, it has no private flags yet */
+		return FALSE;
+	}
+	i_assert(_mail->uid != 0);
 
 	index_transaction_init_pvt(_mail->transaction);
 	if (!mail_index_lookup_seq(_mail->transaction->view_pvt, _mail->uid,


More information about the dovecot-cvs mailing list