From dfa5d0c341929ecc9343dfb26cf4c8c5fc368075 Mon Sep 17 00:00:00 2001 From: Antiklesys Date: Fri, 4 Oct 2024 12:14:23 +0800 Subject: [PATCH] Fixed config cards segmentation fault Fixed segmentation fault error from commit 6264b1df9af5fbc5ab64b64ea0dd092cc16757f6 when trying to generate config cards. --- client/src/cmdhficlass.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/cmdhficlass.c b/client/src/cmdhficlass.c index f6dd33384..7c930e7f0 100644 --- a/client/src/cmdhficlass.c +++ b/client/src/cmdhficlass.c @@ -4921,7 +4921,9 @@ static int CmdHFiClassConfigCard(const char *Cmd) { void *argtable[] = { arg_param_begin, arg_int0(NULL, "ci", "", "use config slot at index"), - arg_int0(NULL, "ki", "", "Key index to select key from memory 'hf iclass managekeys'"), + arg_int0(NULL, "ki", "", "Card Key - index to select key from memory 'hf iclass managekeys'"), + arg_int0(NULL, "krki", "", "Elite Keyroll Key - index to select key from memory 'hf iclass managekeys'"), + arg_lit0(NULL, "elite", "Use elite key for the the Card Key ki"), arg_lit0("g", NULL, "generate card dump file"), arg_lit0("l", NULL, "load available cards"), arg_lit0("p", NULL, "print available cards"),