comparison 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
comparison
equal deleted inserted replaced
801:7dcb46da72d9 802:4029d3432a4f
364 } 364 }
365 } 365 }
366 366
367 static void disablekey(int type) { 367 static void disablekey(int type) {
368 int i; 368 int i;
369 TRACE(("Disabling key type %d", type))
369 for (i = 0; sshhostkey[i].name != NULL; i++) { 370 for (i = 0; sshhostkey[i].name != NULL; i++) {
370 if (sshhostkey[i].val == type) { 371 if (sshhostkey[i].val == type) {
371 sshhostkey[i].usable = 1; 372 sshhostkey[i].usable = 0;
372 break; 373 break;
373 } 374 }
374 } 375 }
375 } 376 }
376 377