Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6073:8418a23cb3f4 HEAD
Don't crash when mapping after mail_index_mark_corrupted()
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 18 Jul 2007 08:36:20 +0300 |
parents | 461496644c67 |
children | 47536814b011 |
files | src/lib-index/mail-index-map.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index-map.c Wed Jul 18 08:20:43 2007 +0300 +++ b/src/lib-index/mail-index-map.c Wed Jul 18 08:36:20 2007 +0300 @@ -745,7 +745,7 @@ index->map = mail_index_map_alloc(index); /* first try updating the existing mapping from transaction log. */ - if (index->map->hdr.indexid != 0) { + if (index->map->hdr.indexid != 0 && index->indexid != 0) { /* we're not creating the index, or opening transaction log. sync this as a view from transaction log. */ ret = mail_index_sync_map(&index->map, type, FALSE);