]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: Call each run() in its own data stack frame
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 21 Sep 2021 14:52:15 +0000 (17:52 +0300)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 22 Sep 2021 11:11:23 +0000 (11:11 +0000)
src/doveadm/doveadm-mail.c

index c433b7bd63f5f8bd4187d2025679cd2b03e92df1..8eb0c9b41e4d77373a97ca7833190ea4997f584e 100644 (file)
@@ -458,9 +458,11 @@ doveadm_mail_next_user(struct doveadm_mail_cmd_context *ctx,
                return ret;
        }
 
-       if (ctx->v.run(ctx, ctx->cur_mail_user) < 0) {
-               i_assert(ctx->exit_code != 0);
-       }
+       T_BEGIN {
+               if (ctx->v.run(ctx, ctx->cur_mail_user) < 0) {
+                       i_assert(ctx->exit_code != 0);
+               }
+       } T_END;
        mail_user_deinit(&ctx->cur_mail_user);
        mail_storage_service_user_unref(&ctx->cur_service_user);
        return 1;