mirror of
https://github.com/curl/curl.git
synced 2026-05-06 00:07:33 +03:00
smtp: return value ignored
Return value from Curl_client_write was overwritten by smtp_perform_command making errors ignored. Pointed out by ZeroPath Closes #19136
This commit is contained in:
parent
f6334f379d
commit
fffc16dd9c
1 changed files with 1 additions and 1 deletions
|
|
@ -1136,7 +1136,7 @@ static CURLcode smtp_state_command_resp(struct Curl_easy *data,
|
|||
if(!data->req.no_body)
|
||||
result = Curl_client_write(data, CLIENTWRITE_BODY, line, len);
|
||||
|
||||
if(smtpcode != 1) {
|
||||
if(!result && (smtpcode != 1)) {
|
||||
if(smtp->rcpt) {
|
||||
smtp->rcpt = smtp->rcpt->next;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue