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, 1 insertions, 1 deletions
diff --git a/libssh/channels.c b/libssh/channels.c
index 3d2747b9..626b69c7 100644
--- a/libssh/channels.c
+++ b/libssh/channels.c
@@ -818,7 +818,7 @@ int channel_poll(CHANNEL *channel, int is_stderr){
while(buffer_get_rest_len(buffer)==0 && !channel->remote_eof){
r=ssh_handle_packets(channel->session);
if(r<=0)
- return r;
+ break;
}
if(channel->remote_eof)
return 1;