← Commit list

6d9636abd1

Daniel Stenberg
Daniel Stenberg
2025-10-06
SUCCESS Duration: 187s

Subject

telnet: return error if WSAEventSelect fails

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/telnet.c+1 -1
@@ -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 */