summaryrefslogtreecommitdiffhomepage
path: root/svr-runopts.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-05-21 12:15:48 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-05-21 12:15:48 +0800
commit0475594cb24e14b77ffb048bf1c5e18aba6d9f57 (patch)
treeb2530ede1459e9abe061bf049172c4d2b9681c4f /svr-runopts.c
parent04518e9e801ee57bd6d4caab470da8dc0ec98fd7 (diff)
Fix broken disablekey()
--HG-- branch : ecc
Diffstat (limited to 'svr-runopts.c')
-rw-r--r--svr-runopts.c3
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;
}
}