Revert "telnet.c: fix handling of 0 being returned from custom read function"
This reverts commit 03fa576833.
This commit is contained in:
@@ -1439,10 +1439,8 @@ static CURLcode telnet_do(struct connectdata *conn, bool *done)
|
|||||||
if(result == CURL_READFUNC_PAUSE)
|
if(result == CURL_READFUNC_PAUSE)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if(result == 0) { /* no bytes, means end-of-file */
|
if(result == 0) /* no bytes */
|
||||||
keepon = FALSE;
|
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
|
|
||||||
readfile_read = result; /* fall thru with number of bytes read */
|
readfile_read = result; /* fall thru with number of bytes read */
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user