Fix offset of bConfirmPIN
This commit is contained in:
@@ -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>
|
2015-09-18 Niibe Yutaka <gniibe@fsij.org>
|
||||||
|
|
||||||
* VERSION: 1.1.9.
|
* VERSION: 1.1.9.
|
||||||
|
|||||||
@@ -1407,7 +1407,7 @@ card_thread (chopstx_t thd, struct eventflag *ccid_comm)
|
|||||||
else if (m == EV_MODIFY_CMD_AVAILABLE)
|
else if (m == EV_MODIFY_CMD_AVAILABLE)
|
||||||
{
|
{
|
||||||
#if defined(PINPAD_SUPPORT)
|
#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;
|
uint8_t *p = apdu.cmd_apdu_data;
|
||||||
|
|
||||||
if (INS (apdu) != INS_CHANGE_REFERENCE_DATA
|
if (INS (apdu) != INS_CHANGE_REFERENCE_DATA
|
||||||
|
|||||||
Reference in New Issue
Block a user