Skip to content

Commit

Permalink
lib-storage: mailbox_delete() - Fix cleanup in error handling
Browse files Browse the repository at this point in the history
If removing index deletion mark failed, box->deleting wasn't set to FALSE
and the mailbox was left opened.
  • Loading branch information
sirainen committed Feb 8, 2018
1 parent a0169b2 commit 1a8872c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-storage/mail-storage.c
Expand Up @@ -1646,7 +1646,7 @@ int mailbox_delete(struct mailbox *box)
/* deletion failed. revert the mark so it can maybe be
tried again later. */
if (mailbox_mark_index_deleted(box, FALSE) < 0)
return -1;
ret = -1;
}

box->deleting = FALSE;
Expand Down

0 comments on commit 1a8872c

Please sign in to comment.