Skip to content

Commit

Permalink
Fix disable flag for application conf block
Browse files Browse the repository at this point in the history
Currently the mere presence of 'disable=xx' disables the application.
Even the 'disable=false', which imho can be confusing. Instead treat it as a boolan
  • Loading branch information
llogar committed Jun 21, 2024
1 parent 1685f37 commit 86a5299
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libopensc/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ parse_dir_record(sc_card_t *card, u8 ** buf, size_t *buflen, int rec_nr)
sc_bin_to_hex(aid.value, aid.len, aid_str, sizeof(aid_str), 0);
blocks = scconf_find_blocks(card->ctx->conf, conf_block, "application", aid_str);
if (blocks) {
ignore_app = (blocks[0] && scconf_get_str(blocks[0], "disable", 0));
ignore_app = (blocks[0] && scconf_get_bool(blocks[0], "disable", 0));
free(blocks);
}

Expand Down

0 comments on commit 86a5299

Please sign in to comment.