From ef84b4e2f655239a3ae4ed23a407348ef6c6eef7 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 22 Sep 2021 12:49:46 +0300 Subject: [PATCH] lib-storage: mailbox_create() - Add data stack frames --- src/lib-storage/mail-storage.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/lib-storage/mail-storage.c b/src/lib-storage/mail-storage.c index 3b92602ce4..910e848403 100644 --- a/src/lib-storage/mail-storage.c +++ b/src/lib-storage/mail-storage.c @@ -1753,14 +1753,17 @@ int mailbox_create(struct mailbox *box, const struct mailbox_update *update, return -1; } box->creating = TRUE; - ret = box->v.create_box(box, update, directory); + T_BEGIN { + ret = box->v.create_box(box, update, directory); + } T_END; box->creating = FALSE; mailbox_list_unlock(box->list); if (ret == 0) { box->list->guid_cache_updated = TRUE; - if (!box->inbox_any) + if (!box->inbox_any) T_BEGIN { mailbox_copy_cache_decisions_from_inbox(box); + } T_END; } else if (box->opened) { /* Creation failed after (partially) opening the mailbox. It may not be in a valid state, so close it. */ -- 2.47.3