From: Timo Sirainen Date: Wed, 22 Sep 2021 09:49:46 +0000 (+0300) Subject: lib-storage: mailbox_create() - Add data stack frames X-Git-Tag: 2.3.17~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ef84b4e2f655239a3ae4ed23a407348ef6c6eef7;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: mailbox_create() - Add data stack frames --- 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. */