dovecot: Crashfix if cache is unusable.

dovecot at dovecot.org dovecot at dovecot.org
Fri Jun 15 23:52:51 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/25ec1a8ec702
changeset: 5748:25ec1a8ec702
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Jun 15 23:49:52 2007 +0300
description:
Crashfix if cache is unusable.

diffstat:

1 file changed, 1 insertion(+)
src/lib-index/mail-cache-lookup.c |    1 +

diffs (11 lines):

diff -r c71f611bbffc -r 25ec1a8ec702 src/lib-index/mail-cache-lookup.c
--- a/src/lib-index/mail-cache-lookup.c	Fri Jun 15 23:13:56 2007 +0300
+++ b/src/lib-index/mail-cache-lookup.c	Fri Jun 15 23:49:52 2007 +0300
@@ -140,6 +140,7 @@ mail_cache_lookup_iter_next_record(struc
 		if (ctx->appends_checked ||
 		    view->trans_seq1 > ctx->seq ||
 		    view->trans_seq2 < ctx->seq ||
+		    MAIL_CACHE_IS_UNUSABLE(view->cache) ||
 		    mail_cache_lookup_offset(view->cache, view->trans_view,
 					     ctx->seq, &ctx->offset) <= 0)
 			return 0;


More information about the dovecot-cvs mailing list