mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-06 10:27:22 +09:00
Fixed channel_poll broken when delayed EOF recvd
Previous code returned SSH_EOF even if data was left in buffer
This commit is contained in:
@@ -1748,6 +1748,9 @@ int channel_poll(ssh_channel channel, int is_stderr){
|
||||
}
|
||||
}
|
||||
|
||||
if (buffer_get_rest_len(stdbuf) > 0)
|
||||
return buffer_get_rest_len(stdbuf);
|
||||
|
||||
if (channel->remote_eof) {
|
||||
leave_function();
|
||||
return SSH_EOF;
|
||||
|
||||
Reference in New Issue
Block a user