1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-02 01:17:52 +03:00

add missing leave_function()

This commit is contained in:
Aris Adamantiadis
2010-02-02 18:20:23 +01:00
parent 7520d9c7b9
commit c97d0d1220

View File

@@ -2161,8 +2161,10 @@ int channel_poll(ssh_channel channel, int is_stderr){
}
}
if (buffer_get_rest_len(stdbuf) > 0)
return buffer_get_rest_len(stdbuf);
if (buffer_get_rest_len(stdbuf) > 0){
leave_function();
return buffer_get_rest_len(stdbuf);
}
if (channel->remote_eof) {
leave_function();