From c258dad8e638c4de27abaafafe1928f14958fad2 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Wed, 16 Aug 2023 17:32:52 +0200 Subject: [PATCH] Fix OTP applet selection. Signed-off-by: Pol Henarejos --- src/fido/otp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fido/otp.c b/src/fido/otp.c index eb12a31..2f25ee1 100644 --- a/src/fido/otp.c +++ b/src/fido/otp.c @@ -115,7 +115,7 @@ const uint8_t otp_aid[] = { }; app_t *otp_select(app_t *a, const uint8_t *aid, uint8_t aid_len) { - if (!memcmp(aid, otp_aid + 1, MIN(aid_len, otp_aid[0]) && cap_supported(CAP_OTP))) { + if (!memcmp(aid, otp_aid + 1, MIN(aid_len, otp_aid[0])) && cap_supported(CAP_OTP)) { a->aid = otp_aid; a->process_apdu = otp_process_apdu; a->unload = otp_unload;