Merge pull request #560 from CardContact/fix_sc_pkcs15init_finalize_profile

Removed error check to support card with PKCS#15 emulation but no mat…
This commit is contained in:
Frank Morgner 2015-10-02 15:18:14 +02:00
commit 5e242c5fb2
1 changed files with 0 additions and 4 deletions

View File

@ -727,10 +727,6 @@ sc_pkcs15init_finalize_profile(struct sc_card *card, struct sc_profile *profile,
if (aid) {
sc_log(ctx, "finalize profile for AID %s", sc_dump_hex(aid->value, aid->len));
app = sc_find_app(card, aid);
if (!app) {
sc_log(ctx, "Cannot find oncard application");
LOG_FUNC_RETURN(ctx, SC_ERROR_INVALID_ARGUMENTS);
}
}
else if (card->app_count == 1) {
app = card->app[0];