Markus Moeller fixed a flaw in libssh2_channel_write_ex() that would occur
on EAGAIN situations.
This commit is contained in:
parent
6a78a6b358
commit
c547e07caa
5
NEWS
5
NEWS
@ -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 ( )
|
||||
-------------------------------
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user