diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-07-23 11:01:06 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-07-23 11:01:06 +0200 |
commit | e721c122d3f453094d4ab27040765974620f15ef (patch) | |
tree | 5ef53f6dbd202e07c1b01748b76d76dff292c4ec /libssh/auth.c | |
parent | 8cd0d0040e70b5a1ab0a8d8588190dd88f17ce4f (diff) | |
download | libssh-e721c122d3f453094d4ab27040765974620f15ef.tar.gz libssh-e721c122d3f453094d4ab27040765974620f15ef.tar.xz libssh-e721c122d3f453094d4ab27040765974620f15ef.zip |
Continue removing old flushing code
Diffstat (limited to 'libssh/auth.c')
-rw-r--r-- | libssh/auth.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libssh/auth.c b/libssh/auth.c index 0e88fbd3..6045c123 100644 --- a/libssh/auth.c +++ b/libssh/auth.c @@ -466,7 +466,7 @@ int ssh_userauth_offer_pubkey(ssh_session session, const char *username, ssh_string_free(service); ssh_string_free(algo); session->auth_state=SSH_AUTH_STATE_NONE; - if (packet_send(session) != SSH_OK) { + if (packet_send(session) == SSH_ERROR) { leave_function(); return rc; } @@ -601,7 +601,7 @@ int ssh_userauth_pubkey(ssh_session session, const char *username, } ssh_string_free(sign); session->auth_state=SSH_AUTH_STATE_NONE; - if (packet_send(session) != SSH_OK) { + if (packet_send(session) == SSH_ERROR) { leave_function(); return rc; } @@ -786,7 +786,7 @@ int ssh_userauth_agent_pubkey(ssh_session session, const char *username, } ssh_string_free(sign); session->auth_state=SSH_AUTH_STATE_NONE; - if (packet_send(session) != SSH_OK) { + if (packet_send(session) == SSH_ERROR) { leave_function(); return rc; } @@ -906,7 +906,7 @@ int ssh_userauth_password(ssh_session session, const char *username, ssh_string_burn(pwd); ssh_string_free(pwd); session->auth_state=SSH_AUTH_STATE_NONE; - if (packet_send(session) != SSH_OK) { + if (packet_send(session) == SSH_ERROR) { leave_function(); return rc; } @@ -1280,7 +1280,7 @@ static int kbdauth_init(ssh_session session, const char *user, ssh_string_free(method); ssh_string_free(sub); session->auth_state=SSH_AUTH_STATE_KBDINT_SENT; - if (packet_send(session) != SSH_OK) { + if (packet_send(session) == SSH_ERROR) { leave_function(); return rc; } @@ -1465,7 +1465,7 @@ static int kbdauth_send(ssh_session session) { session->auth_state=SSH_AUTH_STATE_KBDINT_SENT; kbdint_free(session->kbdint); session->kbdint = NULL; - if (packet_send(session) != SSH_OK) { + if (packet_send(session) == SSH_ERROR) { leave_function(); return rc; } |