Mercurial > dovecot > core-2.2
changeset 22331:0ec61a44ed7b
lib-storage: Ensure list index is present
Otherwise we end up with signal 11 crash later on.
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Tue, 11 Jul 2017 10:26:38 +0300 |
parents | ac8ac56cab89 |
children | 2c3691145654 |
files | src/lib-storage/list/mailbox-list-index.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/list/mailbox-list-index.c Wed Jul 12 16:18:42 2017 +0300 +++ b/src/lib-storage/list/mailbox-list-index.c Tue Jul 11 10:26:38 2017 +0300 @@ -66,6 +66,8 @@ if (mailbox_list_mkdir_missing_index_root(list) < 0) return -1; + i_assert(ilist->index != NULL); + index_flags = mail_storage_settings_to_index_flags(set); if (strcmp(list->name, MAILBOX_LIST_NAME_INDEX) == 0) { /* LAYOUT=index. this is the only location for the mailbox