# HG changeset patch # User Matt Johnston # Date 1369109748 -28800 # Node ID 4029d3432a4f91eac347feebd7da51dbac248aaf # Parent 7dcb46da72d9a11ed0a16d1e7fa234f8ca725727 Fix broken disablekey() diff -r 7dcb46da72d9 -r 4029d3432a4f svr-runopts.c --- 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; } }