aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-04-18 10:32:15 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-04-18 10:32:35 +0200
commit1a36aa21ba7ec4fb93120e1854c73d410810897c (patch)
treeaa64d81e0655d84555b1f457405a0bdd4c0b8b3b
parentc2f8010b6003a218398943548b7c2ddc91d36ab8 (diff)
downloadlibssh-1a36aa21ba7ec4fb93120e1854c73d410810897c.tar.gz
libssh-1a36aa21ba7ec4fb93120e1854c73d410810897c.tar.xz
libssh-1a36aa21ba7ec4fb93120e1854c73d410810897c.zip
packet_cb: Fix the if check in ssh_packet_newkeys()
CID 1388446 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/packet_cb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/packet_cb.c b/src/packet_cb.c
index 2b407416..fc676257 100644
--- a/src/packet_cb.c
+++ b/src/packet_cb.c
@@ -180,7 +180,7 @@ SSH_PACKET_CALLBACK(ssh_packet_newkeys){
/* get the server public key */
server_key = ssh_dh_get_next_server_publickey(session);
- if (rc < 0) {
+ if (server_key == NULL) {
return SSH_ERROR;
}