diff options
author | Petar Koretic <petar.koretic@sartura.hr> | 2014-03-20 09:59:42 +0000 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-03-27 10:46:21 +0100 |
commit | c51f42a566879f61c2349066bc4e8dd35bc5c311 (patch) | |
tree | 7b71e11f295addc4bd1c672bae5d0ba0c36001b9 /include | |
parent | 00d4fbe75336b66262fdca86430655094adb8322 (diff) | |
download | libssh-c51f42a566879f61c2349066bc4e8dd35bc5c311.tar.gz libssh-c51f42a566879f61c2349066bc4e8dd35bc5c311.tar.xz libssh-c51f42a566879f61c2349066bc4e8dd35bc5c311.zip |
libssh: libhpp: avoid unnecessary call to ssh_channel_read
ssh_channel_read is a wrapper for ssh_channel_read_timeout with timeout
-1 (infinite) so we call that directly.
Signed-off-by: Petar Koretic <petar.koretic@sartura.hr>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libssh/libsshpp.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libssh/libsshpp.hpp b/include/libssh/libsshpp.hpp index b5169512..0cf945be 100644 --- a/include/libssh/libsshpp.hpp +++ b/include/libssh/libsshpp.hpp @@ -485,7 +485,7 @@ public: /* handle int overflow */ if(count > 0x7fffffff) count = 0x7fffffff; - err=ssh_channel_read(channel,dest,count,is_stderr); + err=ssh_channel_read_timeout(channel,dest,count,is_stderr,-1); ssh_throw(err); return err; } |