pkcs15: without AID specified return the first available PKCS#15 application ...

revert accidential commit, thanks to Pierre Ossman.
http://www.opensc-project.org/pipermail/opensc-devel/2011-March/016149.html


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@5232 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
vtarasov 2011-03-14 18:13:38 +00:00
parent b1a1dc245a
commit a076397671
1 changed files with 1 additions and 1 deletions

View File

@ -675,7 +675,7 @@ struct sc_app_info * sc_find_app(struct sc_card *card, struct sc_aid *aid)
return NULL;
if (!aid || !aid->len)
return card->app[card->app_count - 1];
return card->app[0];
for (ii=0; ii < card->app_count; ii++) {
if (card->app[ii]->aid.len != aid->len)