This commit is contained in:
merlokk 2021-07-31 10:55:21 +03:00
parent de566068b7
commit e4eff3c40f

View file

@ -773,11 +773,11 @@ int DesfireSelectAID(DesfireContext *ctx, uint8_t *aid1, uint8_t *aid2) {
if (respcode != MFDES_S_OPERATION_OK)
return PM3_EAPDU_FAIL;
DesfireClearSession(ctx);
return PM3_SUCCESS;
}
DesfireClearSession(ctx);
return res;
}