1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-02 01:17:52 +03:00

session: Fix return code of ssh_blocking_flush().

This commit is contained in:
Andreas Schneider
2011-05-28 13:27:14 +02:00
parent 3bc46c3bf0
commit 3c21281bf0

View File

@@ -311,7 +311,7 @@ int ssh_is_blocking(ssh_session session){
int ssh_blocking_flush(ssh_session session, int timeout){
ssh_socket s;
struct ssh_timestamp ts;
int rc;
int rc = SSH_OK;
if(session==NULL)
return SSH_ERROR;
@@ -328,7 +328,7 @@ int ssh_blocking_flush(ssh_session session, int timeout){
}
leave_function();
return SSH_OK;
return rc;
}
/**