]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
telnet: Fix read-callback change for Windows builds
authorJay Satiro <raysatiro@yahoo.com>
Fri, 22 May 2015 03:26:32 +0000 (23:26 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Fri, 22 May 2015 03:26:32 +0000 (23:26 -0400)
Refer to b0143a2 for more information on the read-callback change.

lib/telnet.c

index 4ea049d21b130bfb6f1522ec40e668c1c0e6b38a..aabf99d485bcd674045f8d6e0b91f5c891500529 100644 (file)
@@ -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;