Subject: [PATCH] libssh2_channel_receive_window_adjust: adjust the remote window_size

[PATCH] libssh2_channel_receive_window_adjust: adjust the remote window_size

From: liuzl <xieepp_at_gmail.com>
Date: Tue, 30 Aug 2011 15:58:20 +0800

adjust the remote window_size

Signed-off-by: liuzl <xieepp_at_gmail.com>

---
 src/channel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/channel.c b/src/channel.c
index be6a680..ec1b550 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -1584,7 +1584,7 @@ _libssh2_channel_receive_window_adjust(LIBSSH2_CHANNEL * channel,
                        "Would block sending window adjust");
         return rc;
     }
-    else if (rc) {
+    else if (rc < 0) {
         channel->adjust_queue = adjustment;
         return _libssh2_error(channel->session, LIBSSH2_ERROR_SOCKET_SEND,
                               "Unable to send transfer-window adjustment "
-- 
1.7.4.msysgit.0
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-08-30