telnet: return error if WSAEventSelect fails
No binary (build failed)
—
(log yok)
| @@ -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 */ | |