Fix broken disablekey()

--HG--
branch : ecc
This commit is contained in:
Matt Johnston 2013-05-21 12:15:48 +08:00
parent 04518e9e80
commit 0475594cb2

View File

@ -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;
}
}