Fix offset of bConfirmPIN

This commit is contained in:
NIIBE Yutaka
2015-11-30 13:38:00 +09:00
parent 1648a538df
commit 3f8c4d1f17
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2015-11-30 perillamint <perillamint@gentoo.moe>
* src/openpgp.c (card_thread): Fix offset of bConfirmPIN.
2015-09-18 Niibe Yutaka <gniibe@fsij.org>
* VERSION: 1.1.9.

View File

@@ -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