aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/telnet.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index 6904c4ce3..fd5822e77 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -1439,10 +1439,8 @@ static CURLcode telnet_do(struct connectdata *conn, bool *done)
if(result == CURL_READFUNC_PAUSE)
break;
- if(result == 0) { /* no bytes, means end-of-file */
- keepon = FALSE;
+ if(result == 0) /* no bytes */
break;
- }
readfile_read = result; /* fall thru with number of bytes read */
}