Mercurial > dovecot > core-2.2
changeset 4893:f82adecdca19 HEAD
Don't crash with indexes disabled.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 10 Dec 2006 14:59:45 +0200 |
parents | 2a6a5335d3c3 |
children | 24afafbfe47b |
files | src/lib-storage/list/index-mailbox-list-sync.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/list/index-mailbox-list-sync.c Sun Dec 10 14:59:15 2006 +0200 +++ b/src/lib-storage/list/index-mailbox-list-sync.c Sun Dec 10 14:59:45 2006 +0200 @@ -169,6 +169,11 @@ list = mail_storage_get_list(box->storage); ilist = INDEX_LIST_CONTEXT(list); + if (ilist == NULL) { + /* indexing disabled */ + return 0; + } + ret = mailbox_list_index_lookup(ilist->list_index, box->name, &uid); if (ret <= 0) return ret;