summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2022-06-22 18:59:10 +0200
committerFrediano Ziglio <freddy77@gmail.com>2023-06-08 20:36:40 +0100
commit1b328558c501c430e4805773b908484e01e5554b (patch)
tree7b8761010d8cc0136246f9cc4c7a4e42dc277344 /src
parentcba4daef939ad31a1253bbadf05fee775f397d50 (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.c2
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 */