]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: mailbox_create() - Add data stack frames
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Wed, 22 Sep 2021 09:49:46 +0000 (12:49 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 22 Sep 2021 11:11:23 +0000 (11:11 +0000)
src/lib-storage/mail-storage.c

index 3b92602ce43be18285a78bf45c99da7342772b0c..910e84840302f2b0f9d1ab55a295ed40aaeae797 100644 (file)
@@ -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. */