mirror of
https://github.com/clearml/dropbear
synced 2025-03-14 15:48:24 +00:00
Fix broken disablekey()
--HG-- branch : ecc
This commit is contained in:
parent
04518e9e80
commit
0475594cb2
@ -366,9 +366,10 @@ static void addportandaddress(char* spec) {
|
|||||||
|
|
||||||
static void disablekey(int type) {
|
static void disablekey(int type) {
|
||||||
int i;
|
int i;
|
||||||
|
TRACE(("Disabling key type %d", type))
|
||||||
for (i = 0; sshhostkey[i].name != NULL; i++) {
|
for (i = 0; sshhostkey[i].name != NULL; i++) {
|
||||||
if (sshhostkey[i].val == type) {
|
if (sshhostkey[i].val == type) {
|
||||||
sshhostkey[i].usable = 1;
|
sshhostkey[i].usable = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user