Skip to content

Commit

Permalink
doveadm-save: Set exit code to EX_TEMPFAIL on open error
Browse files Browse the repository at this point in the history
Prevents potential crash on doveadm_mail_next_user
  • Loading branch information
cmouse authored and sirainen committed Dec 15, 2016
1 parent 29ddc07 commit e78960f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/doveadm/doveadm-mail-save.c
Expand Up @@ -24,6 +24,7 @@ cmd_save_to_mailbox(struct save_cmd_context *ctx, struct mailbox *box,
i_error("open(%s) failed: %s",
i_stream_get_name(input),
i_stream_get_error(input));
ctx->ctx.exit_code = EX_TEMPFAIL;
return -1;
}

Expand Down

0 comments on commit e78960f

Please sign in to comment.