mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:01:41 +03:00
telnet: send failure logged but not returned
Return error correctly when sending fails. Reported-by: Joshua Rogers Closes #18887
This commit is contained in:
parent
6d9636abd1
commit
e214b14501
1 changed files with 1 additions and 0 deletions
|
|
@ -984,6 +984,7 @@ static CURLcode suboption(struct Curl_easy *data, struct TELNET *tn)
|
|||
if(bytes_written < 0) {
|
||||
err = SOCKERRNO;
|
||||
failf(data,"Sending data failed (%d)",err);
|
||||
return CURLE_SEND_ERROR;
|
||||
}
|
||||
printsub(data, '>', &temp[2], len-2);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue