[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] socket: ssh_socket_write() should return socket write errors
[Thread Prev] | [Thread Next]
- Subject: [PATCH] socket: ssh_socket_write() should return socket write errors
- From: Nicolas Viennot <nicolas@xxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Tue, 15 Sep 2015 17:46:07 -0400
- To: libssh@xxxxxxxxxx
Signed-off-by: Nicolas Viennot <nicolas@xxxxxxxxxxx> --- src/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/socket.c b/src/socket.c index 022c9a7..0601beb 100644 --- a/src/socket.c +++ b/src/socket.c @@ -619,7 +619,7 @@ int ssh_socket_write(ssh_socket s, const void *buffer, int len) { ssh_set_error_oom(s->session); return SSH_ERROR; } - ssh_socket_nonblocking_flush(s); + return ssh_socket_nonblocking_flush(s); } return SSH_OK; -- 2.4.2
Re: [PATCH] socket: ssh_socket_write() should return socket write errors | Nicolas Viennot <nicolas@xxxxxxxxxxx> |