Skip to content
Permalink
Browse files

Multiple 'RCPT TO': Fix reference error to a new option.

  • Loading branch information
volpav committed Jan 14, 2020
1 parent 74a4bb1 commit 4abb83437a29cf55194a4c230cd5f7071f85c683
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/smtp.c
@@ -919,7 +919,8 @@ static CURLcode smtp_state_rcpt_resp(struct connectdata *conn, int smtpcode,
(void)instate; /* no use for this yet */

bool is_smtp_err = smtpcode/100 != 2;
bool is_smtp_blocking_err = is_smtp_err && !data->mail_rcpt_ignore_invalid;
bool is_smtp_blocking_err =
is_smtp_err && !data->set.mail_rcpt_ignore_invalid;

if (is_smtp_err) {
smtp->rcpt_last_error = smtpcode;
@@ -939,6 +940,8 @@ static CURLcode smtp_state_rcpt_resp(struct connectdata *conn, int smtpcode,
/* Send the next RCPT TO command */
result = smtp_perform_rcpt_to(conn);
else {
/* We weren't able to issue a successful "RCPT TO" command while going
over recipients (potentially multiple). Sending back the last error. */
if (!smtp->rcpt_had_ok) {
failf(data, "RCPT failed: %d (last error)", smtp->rcpt_last_error);
result = CURLE_SEND_ERROR;

0 comments on commit 4abb834

Please sign in to comment.
You can’t perform that action at this time.