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