Fix return code in libssh2_channel_write_ex()
This commit is contained in:
parent
3614bdac21
commit
a0cd3ed3dc
@ -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 */
|
/* twiddle our thumbs until there's window space available */
|
||||||
if (libssh2_packet_read(session, 1) < 0) {
|
if (libssh2_packet_read(session, 1) < 0) {
|
||||||
/* Error occured, disconnect? */
|
/* Error occured, disconnect? */
|
||||||
return 0;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user