diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-02-02 18:20:23 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-02-02 18:20:23 +0100 |
commit | c97d0d122012302ee4e3b9e778bd54fe7aca6035 (patch) | |
tree | 0849463b269b7a4b050365c6e99493e79a1c7e32 /libssh | |
parent | 7520d9c7b9336867df95c583b9968c940b72d889 (diff) | |
download | libssh-c97d0d122012302ee4e3b9e778bd54fe7aca6035.tar.gz libssh-c97d0d122012302ee4e3b9e778bd54fe7aca6035.tar.xz libssh-c97d0d122012302ee4e3b9e778bd54fe7aca6035.zip |
add missing leave_function()
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/channels.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libssh/channels.c b/libssh/channels.c index c881bd0a..c4e81680 100644 --- a/libssh/channels.c +++ b/libssh/channels.c @@ -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(); |