aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-05-27 13:11:21 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-05-27 14:19:42 +0200
commit5b645419fdf7b7c174513547a3091d4359de40dd (patch)
tree20d64d1fe4a92f55eec5d17b5a9eba23cb7f9413
parentc436e0702208b7c7603cbdeabd00a29a9af85c73 (diff)
downloadlibssh-5b645419fdf7b7c174513547a3091d4359de40dd.tar.gz
libssh-5b645419fdf7b7c174513547a3091d4359de40dd.tar.xz
libssh-5b645419fdf7b7c174513547a3091d4359de40dd.zip
Fix bug #5, channel_read_nonblocking that blocks
-rw-r--r--src/channels.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channels.c b/src/channels.c
index 1b652e95..693cfdf5 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -2404,7 +2404,7 @@ int ssh_channel_read(ssh_channel channel, void *dest, uint32_t count, int is_std
int ssh_channel_read_nonblocking(ssh_channel channel, void *dest, uint32_t count,
int is_stderr) {
ssh_session session = channel->session;
- uint32_t to_read;
+ int to_read;
int rc;
enter_function();