diff options
author | Matt Johnston <matt@ucc.asn.au> | 2013-05-21 12:15:48 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2013-05-21 12:15:48 +0800 |
commit | cbc0f5cc730359faaf8f7c2d404993acf78720f6 (patch) | |
tree | 6d5b6c6df85aa59df4919347734e26a49d0b6ddc | |
parent | a0da2d6e81a883a2a1b38d464603cec9a5e8aabd (diff) | |
download | dropbear-cbc0f5cc730359faaf8f7c2d404993acf78720f6.tar.gz |
Fix broken disablekey()
-rw-r--r-- | svr-runopts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svr-runopts.c b/svr-runopts.c index a775ea3..07da95c 100644 --- a/svr-runopts.c +++ b/svr-runopts.c @@ -366,9 +366,10 @@ static void addportandaddress(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 = 1; + sshhostkey[i].usable = 0; break; } } |