1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-10 06:23:01 +03:00

session: Fix return code of ssh_blocking_flush().

(cherry picked from commit 3c21281bf0)
This commit is contained in:
Andreas Schneider
2011-05-28 13:27:14 +02:00
parent 91489cd378
commit 956b64d348

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;
}
/**