Skip to content

Commit

Permalink
lib-storage: Fix crash in obox's dsync-merge
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Dec 15, 2016
1 parent ddc3de0 commit bfb24d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lib-storage/list/mailbox-list-index-backend.c
Expand Up @@ -516,6 +516,12 @@ static int index_list_mailbox_open(struct mailbox *box)
if (ibox->module_ctx.super.open(box) < 0)
return -1;

if (box->view == NULL) {
/* FIXME: dsync-merge is performing a delete in obox - remove
this check once dsync-merging is no longer used. */
return 0;
}

/* if mailbox name has changed, update it to the header. Use \0
as the hierarchy separator in the header. This is to make sure
we don't keep rewriting the name just in case some backend switches
Expand Down

0 comments on commit bfb24d8

Please sign in to comment.