]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: Fix error message if doveadm_mail_cmd_vfuncs.prerun() fails
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 13 Nov 2023 23:58:45 +0000 (01:58 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Wed, 12 Feb 2025 10:34:10 +0000 (12:34 +0200)
src/doveadm/doveadm-mail.c

index 79a945f4eb46ee32da387e7757599910f48a7c61..ee3ae12d7a11bbeb524d16a57350b9823ba22e42 100644 (file)
@@ -464,7 +464,7 @@ doveadm_mail_next_user(struct doveadm_mail_cmd_context *ctx,
        if (ctx->v.prerun != NULL) {
                T_BEGIN {
                        ret = ctx->v.prerun(ctx, ctx->cur_service_user, error_r);
-               } T_END;
+               } T_END_PASS_STR_IF(ret < 0, error_r);
                if (ret < 0) {
                        mail_storage_service_user_unref(&ctx->cur_service_user);
                        return -1;