mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
smtp: Fixed broken RCPT TO from commit 0ea4a80bb2
This commit is contained in:
parent
5d040632ac
commit
eedca5055e
@ -1349,13 +1349,14 @@ static CURLcode smtp_state_rcpt_resp(struct connectdata *conn, int smtpcode,
|
|||||||
if(smtp->rcpt)
|
if(smtp->rcpt)
|
||||||
/* Send the next RCPT TO command */
|
/* Send the next RCPT TO command */
|
||||||
result = smtp_perform_rcpt_to(conn);
|
result = smtp_perform_rcpt_to(conn);
|
||||||
else
|
else {
|
||||||
/* Send the DATA command */
|
/* Send the DATA command */
|
||||||
result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s", "DATA");
|
result = Curl_pp_sendf(&conn->proto.smtpc.pp, "%s", "DATA");
|
||||||
|
|
||||||
if(!result)
|
if(!result)
|
||||||
state(conn, SMTP_DATA);
|
state(conn, SMTP_DATA);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user