mirror of
https://github.com/curl/curl.git
synced 2026-05-04 14:59:55 +03:00
telnet: return error if WSAEventSelect fails
Reported-by: Joshua Rogers Closes #18886
This commit is contained in:
parent
3b18aeb8bd
commit
6d9636abd1
1 changed files with 1 additions and 1 deletions
|
|
@ -1371,7 +1371,7 @@ static CURLcode telnet_do(struct Curl_easy *data, bool *done)
|
|||
/* Tell Winsock what events we want to listen to */
|
||||
if(WSAEventSelect(sockfd, event_handle, FD_READ|FD_CLOSE) == SOCKET_ERROR) {
|
||||
WSACloseEvent(event_handle);
|
||||
return CURLE_OK;
|
||||
return CURLE_RECV_ERROR;
|
||||
}
|
||||
|
||||
/* The get the Windows file handle for stdin */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue