diff --git a/src/tools/pkcs15-init.c b/src/tools/pkcs15-init.c index b5f3ed00..3b8a98e1 100644 --- a/src/tools/pkcs15-init.c +++ b/src/tools/pkcs15-init.c @@ -471,6 +471,8 @@ do_assert_pristine(struct sc_card *card) res = -1; sc_format_path("5015", &path); + r = sc_select_file(card, &path, NULL); + if (r != SC_ERROR_FILE_NOT_FOUND) if (r != SC_ERROR_NOT_ALLOWED || strcmp(card->name, "StarCOS") != 0)