diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-08-09 22:59:17 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-09 22:59:17 +0200 |
commit | 2f878736427f5fd846f8ebb0c834e6a65bf8a638 (patch) | |
tree | acb26e0e8d281ff5089209f3166cc3d2c3eb355f /src/session.c | |
parent | 6c45d6dc0196a2846313b588c0e05996813ab3f8 (diff) | |
download | libssh-2f878736427f5fd846f8ebb0c834e6a65bf8a638.tar.gz libssh-2f878736427f5fd846f8ebb0c834e6a65bf8a638.tar.xz libssh-2f878736427f5fd846f8ebb0c834e6a65bf8a638.zip |
channels: Handle SSH_AGAIN in channel_open().
Diffstat (limited to 'src/session.c')
-rw-r--r-- | src/session.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/session.c b/src/session.c index 5aa6cbb0..589fa5bd 100644 --- a/src/session.c +++ b/src/session.c @@ -464,18 +464,12 @@ int ssh_handle_packets(ssh_session session, int timeout) { tm = ssh_make_milliseconds(session->timeout, session->timeout_usec); } rc = ssh_poll_ctx_dopoll(ctx, tm); - if (rc == SSH_ERROR) { session->session_state = SSH_SESSION_STATE_ERROR; } leave_function(); - - if (session->session_state == SSH_SESSION_STATE_ERROR) { - return SSH_ERROR; - } - - return SSH_OK; + return rc; } /** |