Reset session key in mifare_desfire_select_application().
For Mifare DESFire EV1 support, we need to know when the user has called mifare_desfire_select_application() after being authenticated and before authenticated again.
This commit is contained in:
parent
b7a45b4da4
commit
e0a28547fd
1 changed files with 3 additions and 0 deletions
|
@ -632,6 +632,9 @@ mifare_desfire_select_application (MifareTag tag, MifareDESFireAID aid)
|
|||
for (int n = 0; n < MAX_FILE_COUNT; n++)
|
||||
cached_file_settings_current[n] = false;
|
||||
|
||||
free (MIFARE_DESFIRE (tag)->session_key);
|
||||
MIFARE_DESFIRE (tag)->session_key = NULL;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue