aboutsummaryrefslogtreecommitdiff
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, 2 insertions, 0 deletions
diff --git a/libssh/channels.c b/libssh/channels.c
index a87d338a..31586314 100644
--- a/libssh/channels.c
+++ b/libssh/channels.c
@@ -674,6 +674,8 @@ int channel_poll(CHANNEL *channel, int is_stderr){
} else
return 0; /* nothing is available has said fd_poll */
}
+ if(channel->remote_eof)
+ return 1;
return buffer_get_len(buffer);
}