summaryrefslogtreecommitdiffhomepage
path: root/svr-runopts.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-05-21 23:00:22 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-05-21 23:00:22 +0800
commit331d4a714f65772e384e15ff55b850a6e9e6786b (patch)
tree16c000a69313d6f49610d48af4c74d6d07d1d899 /svr-runopts.c
parent2a81289ed32d9e1ca612a41975974bfa258d2ace (diff)
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.c6
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;
}
}