From 7ceaea479eeac0bf73c4a3482fed1230f63c4e47 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 17 Jun 2013 13:21:51 +0200 Subject: kex1: Fix null check of hostkey. --- src/kex1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kex1.c b/src/kex1.c index b11cf00..0e3cbda 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) { -- cgit