Fix DESFire mis-annotation

This commit is contained in:
Ryan Saridar 2021-04-17 19:08:34 +01:00 committed by GitHub
parent ec9c9a54ab
commit 8046f6862a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -776,6 +776,8 @@ void annotateMfDesfire(char *exp, size_t size, uint8_t *cmd, uint8_t cmdsize) {
pos++;
for (uint8_t i = 0; i < 2; i++, pos++) {
bool found_annotation = true;
switch (cmd[pos]) {
case MFDES_CREATE_APPLICATION:
snprintf(exp, size, "CREATE APPLICATION");
@ -892,8 +894,13 @@ void annotateMfDesfire(char *exp, size_t size, uint8_t *cmd, uint8_t cmdsize) {
snprintf(exp, size, "READ SIGNATURE");
break;
default:
found_annotation = false;
break;
}
if (found_annotation) {
break;
}
}
} else {
// anything else