summaryrefslogtreecommitdiff
path: root/kexgexs.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexgexs.c')
-rw-r--r--kexgexs.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/kexgexs.c b/kexgexs.c
index ca5ee13e9..9c281d288 100644
--- a/kexgexs.c
+++ b/kexgexs.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: kexgexs.c,v 1.23 2015/01/20 23:14:00 deraadt Exp $ */ 1/* $OpenBSD: kexgexs.c,v 1.24 2015/01/26 06:10:03 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2000 Niels Provos. All rights reserved. 3 * Copyright (c) 2000 Niels Provos. All rights reserved.
4 * Copyright (c) 2001 Markus Friedl. All rights reserved. 4 * Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -160,8 +160,10 @@ input_kex_dh_gex_init(int type, u_int32_t seq, void *ctxt)
160 r = SSH_ERR_INVALID_ARGUMENT; 160 r = SSH_ERR_INVALID_ARGUMENT;
161 goto out; 161 goto out;
162 } 162 }
163 server_host_public = kex->load_host_public_key(kex->hostkey_type, ssh); 163 server_host_public = kex->load_host_public_key(kex->hostkey_type,
164 server_host_private = kex->load_host_private_key(kex->hostkey_type, ssh); 164 kex->hostkey_nid, ssh);
165 server_host_private = kex->load_host_private_key(kex->hostkey_type,
166 kex->hostkey_nid, ssh);
165 if (server_host_public == NULL) { 167 if (server_host_public == NULL) {
166 r = SSH_ERR_NO_HOSTKEY_LOADED; 168 r = SSH_ERR_NO_HOSTKEY_LOADED;
167 goto out; 169 goto out;