Mercurial > dropbear
diff svr-runopts.c @ 802:4029d3432a4f ecc
Fix broken disablekey()
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 21 May 2013 12:15:48 +0800 |
parents | 7f604f9b3756 |
children | 75509065db53 |
line wrap: on
line diff
--- a/svr-runopts.c Tue May 21 12:09:35 2013 +0800 +++ b/svr-runopts.c Tue May 21 12:15:48 2013 +0800 @@ -366,9 +366,10 @@ 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; } }