summaryrefslogtreecommitdiff
path: root/kexc25519s.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2015-01-20 07:55:33 +0000
committerDamien Miller <djm@mindrot.org>2015-01-20 18:58:36 +1100
commite2cc6bef08941256817d44d146115b3478586ad4 (patch)
tree4ee22a5f23b07e695d76ee31c959f1fde1792081 /kexc25519s.c
parent1ca3e2155aa5d3801a7ae050f85c71f41fcb95b1 (diff)
upstream commit
fix hostkeys in agent; ok markus@
Diffstat (limited to 'kexc25519s.c')
-rw-r--r--kexc25519s.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/kexc25519s.c b/kexc25519s.c
index 912b0afb1..d840856d2 100644
--- a/kexc25519s.c
+++ b/kexc25519s.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: kexc25519s.c,v 1.6 2015/01/19 20:16:15 markus Exp $ */ 1/* $OpenBSD: kexc25519s.c,v 1.7 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 * Copyright (c) 2010 Damien Miller. All rights reserved. 4 * Copyright (c) 2010 Damien Miller. All rights reserved.
@@ -75,10 +75,9 @@ input_kex_c25519_init(int type, u_int32_t seq, void *ctxt)
75 r = SSH_ERR_INVALID_ARGUMENT; 75 r = SSH_ERR_INVALID_ARGUMENT;
76 goto out; 76 goto out;
77 } 77 }
78 if ((server_host_public = kex->load_host_public_key(kex->hostkey_type, 78 server_host_public = kex->load_host_public_key(kex->hostkey_type, ssh);
79 ssh)) == NULL || 79 server_host_private = kex->load_host_private_key(kex->hostkey_type, ssh);
80 (server_host_private = kex->load_host_private_key(kex->hostkey_type, 80 if (server_host_public == NULL) {
81 ssh)) == NULL) {
82 r = SSH_ERR_NO_HOSTKEY_LOADED; 81 r = SSH_ERR_NO_HOSTKEY_LOADED;
83 goto out; 82 goto out;
84 } 83 }