dovecot: Another crashfix after mail_index_mark_corrupted()

dovecot at dovecot.org dovecot at dovecot.org
Wed Jul 18 09:26:39 EEST 2007


details:   http://hg.dovecot.org/dovecot/rev/2378d992c49b
changeset: 6077:2378d992c49b
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jul 18 08:51:00 2007 +0300
description:
Another crashfix after mail_index_mark_corrupted()

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-index/mail-index-map.c |    2 +-

diffs (12 lines):

diff -r f1f83c90fd3d -r 2378d992c49b src/lib-index/mail-index-map.c
--- a/src/lib-index/mail-index-map.c	Wed Jul 18 08:39:01 2007 +0300
+++ b/src/lib-index/mail-index-map.c	Wed Jul 18 08:51:00 2007 +0300
@@ -762,7 +762,7 @@ int mail_index_map(struct mail_index *in
 
 		/* if we're creating the index file, we don't have any
 		   logs yet */
-		if (index->log->head != NULL) {
+		if (index->log->head != NULL && index->indexid != 0) {
 			/* and update the map with the latest changes from
 			   transaction log */
 			ret = mail_index_sync_map(&index->map, type, TRUE);


More information about the dovecot-cvs mailing list