summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2015-07-29 08:34:54 +0000
committerDamien Miller <djm@mindrot.org>2015-07-29 19:35:43 +1000
commit5cefe769105a2a2e3ca7479d28d9a325d5ef0163 (patch)
tree6329afd465686d063553e3ff07b1c461ab8c9d02
parentf319912b0d0e1675b8bb051ed8213792c788bcb2 (diff)
upstream commit
fix bug in previous; was printing incorrect string for failed host key algorithms negotiation Upstream-ID: 22c0dc6bc61930513065d92e11f0753adc4c6e6e
-rw-r--r--kex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kex.c b/kex.c
index 5e8b5139..af2a41cc 100644
--- a/kex.c
+++ b/kex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kex.c,v 1.107 2015/07/29 04:43:06 djm Exp $ */
+/* $OpenBSD: kex.c,v 1.108 2015/07/29 08:34:54 djm Exp $ */
/*
* Copyright (c) 2000, 2001 Markus Friedl. All rights reserved.
*
@@ -661,8 +661,8 @@ kex_choose_conf(struct ssh *ssh)
}
if ((r = choose_hostkeyalg(kex, cprop[PROPOSAL_SERVER_HOST_KEY_ALGS],
sprop[PROPOSAL_SERVER_HOST_KEY_ALGS])) != 0) {
- kex->failed_choice = cprop[PROPOSAL_SERVER_HOST_KEY_ALGS];
- cprop[PROPOSAL_SERVER_HOST_KEY_ALGS] = NULL;
+ kex->failed_choice = peer[PROPOSAL_SERVER_HOST_KEY_ALGS];
+ peer[PROPOSAL_SERVER_HOST_KEY_ALGS] = NULL;
goto out;
}
need = dh_need = 0;