aboutsummaryrefslogtreecommitdiff
path: root/lib/telnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/telnet.c')
-rw-r--r--lib/telnet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index 63eef5f29..c63c87946 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -1289,7 +1289,7 @@ static CURLcode telnet_do(struct connectdata *conn, bool *done)
if(event_select_func(sockfd, event_handle, FD_READ|FD_CLOSE) == SOCKET_ERROR) {
close_event_func(event_handle);
FreeLibrary(wsock2);
- return 0;
+ return CURLE_OK;
}
/* If stdin_handle is a pipe, use PeekNamedPipe() method to check it,