aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-05-27 13:11:21 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2011-05-27 13:13:02 +0200
commit17454caf641676aaabb0ff2c4c2d9d1106413d47 (patch)
treee0881877ee32a0fb4798347012fa1c13ef6461a0
parentdcea8db6b221ab812c66bfabd3c0a00aada78c96 (diff)
downloadlibssh-17454caf641676aaabb0ff2c4c2d9d1106413d47.tar.gz
libssh-17454caf641676aaabb0ff2c4c2d9d1106413d47.tar.xz
libssh-17454caf641676aaabb0ff2c4c2d9d1106413d47.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 02999037..857ad524 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -2502,7 +2502,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;
- uint32_t to_read;
+ int to_read;
int rc;
if(channel == NULL) {