summaryrefslogtreecommitdiffstats
path: root/libssh/channels.c
diff options
context:
space:
mode:
Diffstat (limited to 'libssh/channels.c')
-rw-r--r--libssh/channels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/channels.c b/libssh/channels.c
index 45c6d6a..b9f757d 100644
--- a/libssh/channels.c
+++ b/libssh/channels.c
@@ -824,7 +824,7 @@ int channel_poll(CHANNEL *channel, int is_stderr){
}
if(channel->remote_eof)
return 1;
- return buffer_get_len(buffer);
+ return buffer_get_rest_len(buffer);
}
/* nonblocking read on the specified channel. it will return <=len bytes of data read