On Sat, 7 Feb 2009, Markus Moeller wrote:

(I removed curl-users as a receiver as this is plain libssh2 talk)

> I think this would fix libssh2
>
> --- src/channel.c       2009-02-06 23:57:47.000000000 +0000
> +++ src/channel_new.c   2009-02-06 23:57:42.000000000 +0000
> @@ -1771,6 +1771,7 @@
>         channel->write_state = libssh2_NB_state_allocated;
>     }
>
> +    buflen -= channel->write_bufwrote;
>     while (buflen > 0) {
>         if (channel->write_state == libssh2_NB_state_allocated) {
>             channel->write_bufwrite = buflen;

Yes, I can only agree to this. I'll commit this right now! Nice work!

-- 

  / daniel.haxx.se

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
libssh2-devel mailing list
libssh2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel

Reply via email to