hf iclass config - out of bounds check

This commit is contained in:
iceman1001 committed 2021-04-05 12:20:31 +02:00
1 parent 8da99277ff
commit ce40c4d067
1 file changed
+1 -1
+1 -1
View File
@@ -3609,7 +3609,7 @@ static int CmdHFiClassConfigCard(const char * Cmd) {
print_config_cards();
}
if (idx >= 0) {
if (idx > -1 && idx < 14) {
const iclass_config_card_item_t *item = get_config_card_item(idx);
print_config_card(item);
}