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/server.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/server.c')
-rw-r--r-- | libssh/server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libssh/server.c b/libssh/server.c index 3db9132..d62e3b3 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -477,7 +477,7 @@ static int dh_handshake_server(ssh_session session) { } ssh_string_free(f); ssh_string_free(sign); - if (packet_send(session) != SSH_OK) { + if (packet_send(session) == SSH_ERROR) { return -1; } @@ -486,7 +486,7 @@ static int dh_handshake_server(ssh_session session) { return -1; } - if (packet_send(session) != SSH_OK) { + if (packet_send(session) == SSH_ERROR) { return -1; } ssh_log(session, SSH_LOG_PACKET, "SSH_MSG_NEWKEYS sent"); |