mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
telnet: return error if WSAEventSelect fails
Reported-by: Joshua Rogers Closes #18886
This commit is contained in:
parent
3b18aeb8bd
commit
6d9636abd1
@ -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…
Reference in New Issue
Block a user