Mercurial > dropbear
diff svr-runopts.c @ 1678:4b4cfc92c5b7
Make server send SSH_MSG_EXT_INFO
Ensure that only valid hostkey algorithms are sent in the first kex guess
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 21 May 2020 23:00:22 +0800 |
parents | d32bcb5c557d |
children | 435cfb9ec96e |
line wrap: on
line diff
--- a/svr-runopts.c Thu May 21 22:58:56 2020 +0800 +++ b/svr-runopts.c Thu May 21 23:00:22 2020 +0800 @@ -485,9 +485,9 @@ static void disablekey(int type) { int i; TRACE(("Disabling key type %d", type)) - for (i = 0; sshhostkey[i].name != NULL; i++) { - if (sshhostkey[i].val == type) { - sshhostkey[i].usable = 0; + for (i = 0; sigalgs[i].name != NULL; i++) { + if (sigalgs[i].val == type) { + sigalgs[i].usable = 0; break; } }