From 0475594cb24e14b77ffb048bf1c5e18aba6d9f57 Mon Sep 17 00:00:00 2001
From: Matt Johnston <matt@ucc.asn.au>
Date: Tue, 21 May 2013 12:15:48 +0800
Subject: [PATCH] Fix broken disablekey()

--HG--
branch : ecc
---
 svr-runopts.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/svr-runopts.c b/svr-runopts.c
index a775ea3f..07da95c9 100644
--- a/svr-runopts.c
+++ b/svr-runopts.c
@@ -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;
 		}
 	}
-- 
GitLab