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/kex.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/kex.c')
-rw-r--r-- | libssh/kex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/kex.c b/libssh/kex.c index a137a59..c2ca7f2 100644 --- a/libssh/kex.c +++ b/libssh/kex.c @@ -428,7 +428,7 @@ int ssh_send_kex(ssh_session session, int server_kex) { goto error; } - if (packet_send(session) != SSH_OK) { + if (packet_send(session) == SSH_ERROR) { leave_function(); return -1; } @@ -764,7 +764,7 @@ SSH_PACKET_CALLBACK(ssh_packet_publickey1){ goto error; } session->session_state=SSH_SESSION_STATE_KEXINIT_RECEIVED; - if (packet_send(session) != SSH_OK) { + if (packet_send(session) == SSH_ERROR) { goto error; } |