=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/kex.c,v retrieving revision 1.107 retrieving revision 1.108 diff -u -r1.107 -r1.108 --- src/usr.bin/ssh/kex.c 2015/07/29 04:43:06 1.107 +++ src/usr.bin/ssh/kex.c 2015/07/29 08:34:54 1.108 @@ -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. * @@ -640,8 +640,8 @@ } 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;