aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/telnet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/telnet.c b/lib/telnet.c
index 472cd8f53..f5381aa74 100644
--- a/lib/telnet.c
+++ b/lib/telnet.c
@@ -1207,10 +1207,11 @@ CURLcode Curl_telnet(struct connectdata *conn)
char *buffer = buf;
for(;;) {
- if(!PeekNamedPipe(stdin_handle,NULL,0,NULL,&nread,NULL)) {
+ if(!PeekNamedPipe(stdin_handle, NULL, 0, NULL, &readfile_read, NULL)) {
keepon = FALSE;
break;
}
+ nread = readfile_read;
if(!nread)
break;