aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2008-05-08 22:12:21 +0000
committerAris Adamantiadis <aris@0xbadc0de.be>2008-05-08 22:12:21 +0000
commitf084f6e67cf62611fc0f99e367fa6eda1329d760 (patch)
tree70f5bcf501bb0854a3bebc9e7ad24cdbf18ae4a9
parent0a7d405b3d04a5843c92a200dd2ddf049ba8c2a5 (diff)
downloadlibssh-f084f6e67cf62611fc0f99e367fa6eda1329d760.tar.gz
libssh-f084f6e67cf62611fc0f99e367fa6eda1329d760.tar.xz
libssh-f084f6e67cf62611fc0f99e367fa6eda1329d760.zip
fixed a bug in channel_poll where channel_poll() would return 0 even
when data was available. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@155 7dcaeef0-15fb-0310-b436-a5af3365683c
-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;