diff options
author | Jakub Jelen <jjelen@redhat.com> | 2022-06-22 18:59:10 +0200 |
---|---|---|
committer | Frediano Ziglio <freddy77@gmail.com> | 2023-06-08 20:36:40 +0100 |
commit | 1b328558c501c430e4805773b908484e01e5554b (patch) | |
tree | 7b8761010d8cc0136246f9cc4c7a4e42dc277344 /src | |
parent | cba4daef939ad31a1253bbadf05fee775f397d50 (diff) |
card_7816: Fix PTS APDU class detection and verify
This never worked as the apdu->a_type was never enum, but these
instructions are not frequently used so it did not matter.
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/card_7816.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/card_7816.c b/src/card_7816.c index 9cb77e5..1452537 100644 --- a/src/card_7816.c +++ b/src/card_7816.c @@ -786,7 +786,7 @@ vcard_process_apdu(VCard *card, VCardAPDU *apdu, VCardResponse **response) VCardBufferResponse *buffer_response; /* first handle any PTS commands, which aren't really APDU's */ - if (apdu->a_type == VCARD_7816_PTS) { + if (apdu->a_gen_type == VCARD_7816_PTS) { /* the PTS responses aren't really responses either */ *response = vcard_response_new_data(apdu->a_data, apdu->a_len); /* PTS responses have no status bytes */ |