aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libssh/channels.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libssh/channels.c b/libssh/channels.c
index 6e56833e..d10860ec 100644
--- a/libssh/channels.c
+++ b/libssh/channels.c
@@ -1618,6 +1618,9 @@ int channel_poll(CHANNEL *channel, int is_stderr){
}
}
+ if (buffer_get_rest_len(stdbuf) > 0)
+ return buffer_get_rest_len(stdbuf);
+
if (channel->remote_eof) {
leave_function();
return SSH_EOF;