Skip to content

Commit

Permalink
lib-storage: Ensure list index is present
Browse files Browse the repository at this point in the history
Otherwise we end up with signal 11 crash later on.
  • Loading branch information
cmouse authored and sirainen committed Jul 12, 2017
1 parent 91ee70e commit 6009336
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib-storage/list/mailbox-list-index.c
Expand Up @@ -66,6 +66,8 @@ int mailbox_list_index_index_open(struct mailbox_list *list)
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
Expand Down

0 comments on commit 6009336

Please sign in to comment.