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, 2 insertions, 0 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index a46e0196c..5dfed6970 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -1116,6 +1116,7 @@ CURLcode Curl_telnet(struct connectdata *conn)
{
if(events.lNetworkEvents & FD_READ)
{
+ /* This reallu OUGHT to check its return code. */
Curl_read(conn, sockfd, buf, BUFSIZE - 1, &nread);
telrcv(conn, (unsigned char *)buf, nread);
@@ -1176,6 +1177,7 @@ CURLcode Curl_telnet(struct connectdata *conn)
}
if(FD_ISSET(sockfd, &readfd)) {
+ /* This OUGHT to check the return code... */
Curl_read(conn, sockfd, buf, BUFSIZE - 1, &nread);
/* if we receive 0 or less here, the server closed the connection and