From a0cd3ed3dc87ef9d1d2bcdf9cd4a6aea4fbcddac Mon Sep 17 00:00:00 2001 From: Sara Golemon Date: Thu, 16 Dec 2004 23:04:11 +0000 Subject: [PATCH] Fix return code in libssh2_channel_write_ex() --- src/channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/channel.c b/src/channel.c index c3cbaac..42e4049 100644 --- a/src/channel.c +++ b/src/channel.c @@ -612,7 +612,7 @@ LIBSSH2_API int libssh2_channel_write_ex(LIBSSH2_CHANNEL *channel, int stream_id /* twiddle our thumbs until there's window space available */ if (libssh2_packet_read(session, 1) < 0) { /* Error occured, disconnect? */ - return 0; + return -1; } }