Skip to content

Commit

Permalink
Revert "telnet.c: fix handling of 0 being returned from custom read f…
Browse files Browse the repository at this point in the history
…unction"

This reverts commit 03fa576.
  • Loading branch information
mback2k committed Feb 24, 2015
1 parent b3bcdaf commit ffc2aee
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/telnet.c
Expand Up @@ -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 */
}
Expand Down

0 comments on commit ffc2aee

Please sign in to comment.