Mercurial > dropbear
changeset 802:4029d3432a4f ecc
Fix broken disablekey()
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 21 May 2013 12:15:48 +0800 |
parents | 7dcb46da72d9 |
children | 460410334267 |
files | svr-runopts.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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; } }