From 9052c66a7fc81323e00734233d6a10947fca85a1 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Sun, 2 Apr 2023 00:29:22 +0200 Subject: [PATCH] Fix returning otp status over ccid. Signed-off-by: Pol Henarejos --- src/fido/otp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fido/otp.c b/src/fido/otp.c index 843a522..ed913d7 100644 --- a/src/fido/otp.c +++ b/src/fido/otp.c @@ -126,7 +126,8 @@ app_t *otp_select(app_t *a, const uint8_t *aid, uint8_t aid_len) { config_seq = 0; } otp_status(); - res_APDU_size = 7; + memmove(res_APDU, res_APDU + 1, 6); + res_APDU_size = 6; apdu.ne = res_APDU_size; return a; }