telnet: Fix read-callback change for Windows builds
Refer to b0143a2 for more information on the read-callback change.
This commit is contained in:
@@ -1423,7 +1423,8 @@ static CURLcode telnet_do(struct connectdata *conn, bool *done)
|
|||||||
for(;;) {
|
for(;;) {
|
||||||
if(data->set.is_fread_set) {
|
if(data->set.is_fread_set) {
|
||||||
/* read from user-supplied method */
|
/* read from user-supplied method */
|
||||||
result = (int) conn->fread_func(buf, 1, BUFSIZE - 1, data->set.in);
|
result = (int)data->set.fread_func(buf, 1, BUFSIZE - 1,
|
||||||
|
data->set.in);
|
||||||
if(result == CURL_READFUNC_ABORT) {
|
if(result == CURL_READFUNC_ABORT) {
|
||||||
keepon = FALSE;
|
keepon = FALSE;
|
||||||
result = CURLE_READ_ERROR;
|
result = CURLE_READ_ERROR;
|
||||||
|
|||||||
Reference in New Issue
Block a user