Call select AID if selected.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2023-10-12 17:40:49 +02:00
parent 1b5a7496e1
commit 4b099c9d1e
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -31,6 +31,7 @@ int process_apdu() {
if (!memcmp(apps[a].aid + 1, apdu.data, MIN(apdu.nc, apps[a].aid[0]))) {
if (current_app) {
if (current_app->aid && !memcmp(current_app->aid + 1, apdu.data, apdu.nc)) {
current_app->select_aid(current_app);
return set_res_sw(0x90, 0x00);
}
if (current_app->unload) {