diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-05-21 23:00:22 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-05-21 23:00:22 +0800 |
commit | 62206fee241f03f3656ebd1c7aa1d80990cddb34 (patch) | |
tree | 4d09cf166629b4090bca358502e799d4c6ba0444 /svr-runopts.c | |
parent | 34f5dbc26103e20ee1a458e6bd694ee968fc5309 (diff) | |
download | dropbear-62206fee241f03f3656ebd1c7aa1d80990cddb34.tar.gz |
Make server send SSH_MSG_EXT_INFO
Ensure that only valid hostkey algorithms are sent in the first kex guess
Diffstat (limited to 'svr-runopts.c')
-rw-r--r-- | svr-runopts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svr-runopts.c b/svr-runopts.c index d430825..770f70a 100644 --- a/svr-runopts.c +++ b/svr-runopts.c @@ -485,9 +485,9 @@ static void addportandaddress(const char* spec) { 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; } } |