From f084f6e67cf62611fc0f99e367fa6eda1329d760 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Thu, 8 May 2008 22:12:21 +0000 Subject: [PATCH] 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 --- libssh/channels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;