summaryrefslogtreecommitdiff
path: root/lib/telnet.c
diff options
context:
space:
mode:
authorJay Satiro <raysatiro@yahoo.com>2015-05-21 23:26:32 -0400
committerJay Satiro <raysatiro@yahoo.com>2015-05-21 23:26:32 -0400
commit78ac944dc267481992a5edbbb5791028687420a7 (patch)
tree58b3b775d37b8fc5bf55ec0b2efed31afd1e08b6 /lib/telnet.c
parentee04c20b743377b988ded7784d90368b9797dd8b (diff)
downloadcurl-78ac944dc267481992a5edbbb5791028687420a7.tar.gz
telnet: Fix read-callback change for Windows builds
Refer to b0143a2 for more information on the read-callback change.
Diffstat (limited to 'lib/telnet.c')
-rw-r--r--lib/telnet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index 4ea049d21..aabf99d48 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -1423,7 +1423,8 @@ static CURLcode telnet_do(struct connectdata *conn, bool *done)
for(;;) {
if(data->set.is_fread_set) {
/* 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) {
keepon = FALSE;
result = CURLE_READ_ERROR;