mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-05 04:40:31 +09:00
Fix a bug in channel_poll().
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@709 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -1607,7 +1607,7 @@ int channel_poll(CHANNEL *channel, int is_stderr){
|
||||
}
|
||||
|
||||
while (buffer_get_rest_len(stdbuf) == 0 && channel->remote_eof == 0) {
|
||||
if (ssh_handle_packets(channel->session) < 0) {
|
||||
if (ssh_handle_packets(channel->session) <= 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user