clear session after select
This commit is contained in:
1 parent
72585aae8a
commit
de566068b7
1 file changed
+5
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user