summaryrefslogtreecommitdiff
path: root/kexdhs.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexdhs.c')
-rw-r--r--kexdhs.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/kexdhs.c b/kexdhs.c
index 182657ac9..0bfa08b07 100644
--- a/kexdhs.c
+++ b/kexdhs.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: kexdhs.c,v 1.20 2015/01/19 20:16:15 markus Exp $ */ 1/* $OpenBSD: kexdhs.c,v 1.21 2015/01/20 07:55:33 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,10 +101,9 @@ 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 if ((server_host_public = kex->load_host_public_key(kex->hostkey_type, 104 server_host_public = kex->load_host_public_key(kex->hostkey_type, ssh);
105 ssh)) == NULL || 105 server_host_private = kex->load_host_private_key(kex->hostkey_type, ssh);
106 (server_host_private = kex->load_host_private_key(kex->hostkey_type, 106 if (server_host_public == NULL) {
107 ssh)) == NULL) {
108 r = SSH_ERR_NO_HOSTKEY_LOADED; 107 r = SSH_ERR_NO_HOSTKEY_LOADED;
109 goto out; 108 goto out;
110 } 109 }