summaryrefslogtreecommitdiff
path: root/kexdhs.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexdhs.c')
-rw-r--r--kexdhs.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/kexdhs.c b/kexdhs.c
index 0bfa08b07..de7c05b17 100644
--- a/kexdhs.c
+++ b/kexdhs.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: kexdhs.c,v 1.21 2015/01/20 07:55:33 djm Exp $ */ 1/* $OpenBSD: kexdhs.c,v 1.22 2015/01/26 06:10:03 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2001 Markus Friedl. All rights reserved. 3 * Copyright (c) 2001 Markus Friedl. All rights reserved.
4 * 4 *
@@ -101,8 +101,10 @@ input_kex_dh_init(int type, u_int32_t seq, void *ctxt)
101 r = SSH_ERR_INVALID_ARGUMENT; 101 r = SSH_ERR_INVALID_ARGUMENT;
102 goto out; 102 goto out;
103 } 103 }
104 server_host_public = kex->load_host_public_key(kex->hostkey_type, ssh); 104 server_host_public = kex->load_host_public_key(kex->hostkey_type,
105 server_host_private = kex->load_host_private_key(kex->hostkey_type, ssh); 105 kex->hostkey_nid, ssh);
106 server_host_private = kex->load_host_private_key(kex->hostkey_type,
107 kex->hostkey_nid, ssh);
106 if (server_host_public == NULL) { 108 if (server_host_public == NULL) {
107 r = SSH_ERR_NO_HOSTKEY_LOADED; 109 r = SSH_ERR_NO_HOSTKEY_LOADED;
108 goto out; 110 goto out;