From e873c9aeaed2bb854854782069907d6c12606e8a Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 21 Sep 2021 17:52:15 +0300 Subject: [PATCH] doveadm: Call each run() in its own data stack frame --- src/doveadm/doveadm-mail.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/doveadm/doveadm-mail.c b/src/doveadm/doveadm-mail.c index c433b7bd63..8eb0c9b41e 100644 --- a/src/doveadm/doveadm-mail.c +++ b/src/doveadm/doveadm-mail.c @@ -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; -- 2.47.3