diff --git a/src/libopensc/dir.c b/src/libopensc/dir.c index 7d634a8ec6..c83f8ace34 100644 --- a/src/libopensc/dir.c +++ b/src/libopensc/dir.c @@ -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); }