fix 14443 apdu decode and select

This commit is contained in:
merlokk
2019-07-04 17:52:00 +03:00
parent 75b1d9cd01
commit 4845d2c172
2 changed files with 6 additions and 11 deletions

View File

@@ -33,7 +33,7 @@ int apdu_decode(uint8_t *data, size_t len, APDU_STRUCT *apdu)
}
// case 2S (Le)
if (len == 5 && b0 != 0)
if (len == 5)
{
apdu->case_type = 0x02;
apdu->le = b0;
@@ -108,9 +108,9 @@ int apdu_decode(uint8_t *data, size_t len, APDU_STRUCT *apdu)
{
if (apdu->extended_apdu)
{
apdu->data = data + 5;
} else {
apdu->data = data + 7;
} else {
apdu->data = data + 5;
}
}