diff --git a/src/channel.c b/src/channel.c index 0f8a02b..6112b04 100644 --- a/src/channel.c +++ b/src/channel.c @@ -2117,6 +2117,7 @@ _libssh2_channel_write(LIBSSH2_CHANNEL *channel, int stream_id, /* all is sent, clear the buf pointer */ channel->transport_buf = NULL; + wrote += rc; } _libssh2_debug(channel->session, LIBSSH2_TRACE_CONN,