aboutsummaryrefslogtreecommitdiff
path: root/src/kex1.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-06-17 13:21:51 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-06-17 13:21:51 +0200
commit7ceaea479eeac0bf73c4a3482fed1230f63c4e47 (patch)
tree011892c4b0af932e05cdfe3968cac99ff4487cc1 /src/kex1.c
parent2b68728552d125644a522e7548d02af9ffd71713 (diff)
downloadlibssh-7ceaea479eeac0bf73c4a3482fed1230f63c4e47.tar.gz
libssh-7ceaea479eeac0bf73c4a3482fed1230f63c4e47.tar.xz
libssh-7ceaea479eeac0bf73c4a3482fed1230f63c4e47.zip
kex1: Fix null check of hostkey.
Diffstat (limited to 'src/kex1.c')
-rw-r--r--src/kex1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kex1.c b/src/kex1.c
index b11cf007..0e3cbda6 100644
--- a/src/kex1.c
+++ b/src/kex1.c
@@ -375,7 +375,7 @@ SSH_PACKET_CALLBACK(ssh_packet_publickey1){
goto error;
}
hostkey = make_rsa1_string(host_exp,host_mod);
- if (serverkey == NULL) {
+ if (hostkey == NULL) {
goto error;
}
if (build_session_id1(session, server_mod, host_mod) < 0) {