Mercurial > dovecot > core-2.2
changeset 20956:f4ae4ddb5abf
doveadm: Rewind input early enough
Command input needs to be rewinded earlier
in doveadm_mail_next_user.
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Fri, 21 Oct 2016 13:55:42 +0300 |
parents | 1ca4607b0a0d |
children | 24c209098ac5 |
files | src/doveadm/doveadm-mail.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/doveadm/doveadm-mail.c Mon Oct 24 17:15:00 2016 +0300 +++ b/src/doveadm/doveadm-mail.c Fri Oct 21 13:55:42 2016 +0300 @@ -366,6 +366,8 @@ else i_set_failure_prefix("doveadm(%s,%s): ", ip, cctx->username); doveadm_cctx_to_storage_service_input(cctx, &input); + if (ctx->cmd_input != NULL) + i_stream_seek(ctx->cmd_input, 0); /* see if we want to execute this command via (another) doveadm server */ @@ -399,8 +401,6 @@ return ret; } - if (ctx->cmd_input != NULL) - i_stream_seek(ctx->cmd_input, 0); if (ctx->v.run(ctx, ctx->cur_mail_user) < 0) { i_assert(ctx->exit_code != 0); }