mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-12 11:10:28 +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:
committed by
Andreas Schneider
parent
e8e874909f
commit
9abdc5ae2a
@@ -1618,6 +1618,9 @@ int channel_poll(CHANNEL *channel, int is_stderr){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (buffer_get_rest_len(stdbuf) > 0)
|
||||||
|
return buffer_get_rest_len(stdbuf);
|
||||||
|
|
||||||
if (channel->remote_eof) {
|
if (channel->remote_eof) {
|
||||||
leave_function();
|
leave_function();
|
||||||
return SSH_EOF;
|
return SSH_EOF;
|
||||||
|
|||||||
Reference in New Issue
Block a user