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:
Romain Tartiere 2010-11-23 01:15:27 +00:00
parent b7a45b4da4
commit e0a28547fd

View file

@ -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;
}