[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] channels: Fix typ of len variable


The return value of ssh_buffer_get_len is uint32_t instead of size_t.

Signed-off-by: Heiko Thiery <heiko.thiery@xxxxxxxxx>
---
 src/channels.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/channels.c b/src/channels.c
index d0eeddf9..20cafeac 100644
--- a/src/channels.c
+++ b/src/channels.c
@@ -3092,7 +3092,7 @@ int ssh_channel_poll_timeout(ssh_channel channel, int timeout, int is_stderr)
     ssh_session session;
     ssh_buffer stdbuf;
     struct ssh_channel_read_termination_struct ctx;
-    size_t len;
+    uint32_t len;
     int rc;
 
     if(channel == NULL) {
-- 
2.20.1


References:
[RFC] channels regression issueHeiko Thiery <heiko.thiery@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org