From ce6320cdc1d130be3e17fbc4fe9f13287869c9f3 Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Tue, 8 Jan 2019 19:22:27 +0200 Subject: [PATCH] change sc apdu to be compatible with 14a apdu --- client/cmdsmartcard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/cmdsmartcard.c b/client/cmdsmartcard.c index a864e2358..fdc825d38 100644 --- a/client/cmdsmartcard.c +++ b/client/cmdsmartcard.c @@ -533,7 +533,7 @@ int ExchangeAPDUSC(uint8_t *datain, int datainlen, bool activateCard, bool leave int len = smart_responseEx(dataout, true); if ( len < 0 ) { - return 2; + return 1; } // retry