Skip to content

Commit e3e09f7

Browse files
llogarxhanulik
authored andcommitted
Fix disable flag for application conf block
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
1 parent 5d9f0d8 commit e3e09f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libopensc/dir.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ parse_dir_record(sc_card_t *card, u8 ** buf, size_t *buflen, int rec_nr)
9898
sc_bin_to_hex(aid.value, aid.len, aid_str, sizeof(aid_str), 0);
9999
blocks = scconf_find_blocks(card->ctx->conf, conf_block, "application", aid_str);
100100
if (blocks) {
101-
ignore_app = (blocks[0] && scconf_get_str(blocks[0], "disable", 0));
102-
free(blocks);
101+
ignore_app = (blocks[0] && scconf_get_bool(blocks[0], "disable", 0));
102+
free(blocks);
103103
}
104104

105105
if (ignore_app) {

0 commit comments

Comments
 (0)