From 3f8c4d1f174bc9d67e47982700c7a07ec0ae8574 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 30 Nov 2015 13:38:00 +0900 Subject: [PATCH] Fix offset of bConfirmPIN --- ChangeLog | 4 ++++ src/openpgp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 29c4548..8fd9564 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2015-11-30 perillamint + + * src/openpgp.c (card_thread): Fix offset of bConfirmPIN. + 2015-09-18 Niibe Yutaka * VERSION: 1.1.9. diff --git a/src/openpgp.c b/src/openpgp.c index 0c5b8ed..efeff44 100644 --- a/src/openpgp.c +++ b/src/openpgp.c @@ -1407,7 +1407,7 @@ card_thread (chopstx_t thd, struct eventflag *ccid_comm) else if (m == EV_MODIFY_CMD_AVAILABLE) { #if defined(PINPAD_SUPPORT) - uint8_t bConfirmPIN = apdu.cmd_apdu_data[5]; + uint8_t bConfirmPIN = apdu.cmd_apdu_data[0]; uint8_t *p = apdu.cmd_apdu_data; if (INS (apdu) != INS_CHANGE_REFERENCE_DATA