mirror of
https://github.com/curl/curl.git
synced 2026-04-17 18:51:41 +03:00
Revert "telnet.c: fix handling of 0 being returned from custom read function"
This reverts commit 03fa576833.
This commit is contained in:
parent
b3bcdaf01a
commit
ffc2aeec6e
1 changed files with 1 additions and 3 deletions
|
|
@ -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 */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue