Skip to content

Commit

Permalink
lmtp: local: Make local variable for rcpt->rcpt.rcpt_cmd in lmtp_loca…
Browse files Browse the repository at this point in the history
…l_rcpt_check_quota().
  • Loading branch information
stephanbosch authored and villesavolainen committed Feb 15, 2018
1 parent abc7aab commit a2c36f5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/lmtp/lmtp-local.c
Expand Up @@ -192,6 +192,7 @@ static int
lmtp_local_rcpt_check_quota(struct lmtp_local_recipient *rcpt)
{
struct client *client = rcpt->rcpt.client;
struct smtp_server_cmd_ctx *cmd = rcpt->rcpt.rcpt_cmd;
struct smtp_address *address = rcpt->rcpt.path;
struct mail_user *user;
struct mail_namespace *ns;
Expand Down Expand Up @@ -242,10 +243,10 @@ lmtp_local_rcpt_check_quota(struct lmtp_local_recipient *rcpt)
}

if (ret < 0 &&
!smtp_server_command_is_replied(rcpt->rcpt.rcpt_cmd->cmd)) {
smtp_server_reply(rcpt->rcpt.rcpt_cmd,
451, "4.3.0", "<%s> Temporary internal error",
smtp_address_encode(address));
!smtp_server_command_is_replied(cmd->cmd)) {
smtp_server_reply(cmd, 451, "4.3.0",
"<%s> Temporary internal error",
smtp_address_encode(address));
}
return ret;
}
Expand Down

0 comments on commit a2c36f5

Please sign in to comment.