Markus Moeller fixed a flaw in libssh2_channel_write_ex() that would occur

on EAGAIN situations.
This commit is contained in:
Daniel Stenberg 2009-02-08 12:09:20 +00:00
parent 6a78a6b358
commit c547e07caa
2 changed files with 8 additions and 0 deletions

5
NEWS
View File

@ -1,3 +1,8 @@
- (Deb 8 2009)
Markus Moeller fixed a flaw in libssh2_channel_write_ex() that would occur
on EAGAIN situations.
Version 1.0 ( )
-------------------------------

View File

@ -1771,6 +1771,9 @@ libssh2_channel_write_ex(LIBSSH2_CHANNEL * channel, int stream_id,
channel->write_state = libssh2_NB_state_allocated;
}
/* deduct the amount thet has already been sent */
buflen -= channel->write_bufwrote;
while (buflen > 0) {
if (channel->write_state == libssh2_NB_state_allocated) {
channel->write_bufwrite = buflen;