mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
clear session after select
This commit is contained in:
parent
72585aae8a
commit
de566068b7
1 changed files with 5 additions and 0 deletions
|
@ -775,6 +775,9 @@ int DesfireSelectAID(DesfireContext *ctx, uint8_t *aid1, uint8_t *aid2) {
|
|||
|
||||
return PM3_SUCCESS;
|
||||
}
|
||||
|
||||
DesfireClearSession(ctx);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -2231,6 +2234,8 @@ int DesfireISOSelect(DesfireContext *dctx, DesfireISOSelectControl cntr, uint8_t
|
|||
memcpy(resp, xresp, xresplen);
|
||||
}
|
||||
|
||||
DesfireClearSession(dctx);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue