From f3f34cf66b19ba4c809f1b2e031ea5500e07700b Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Wed, 13 Mar 2024 22:06:00 +0100 Subject: [PATCH] Fix oath crash. Signed-off-by: Pol Henarejos --- src/fido/oath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fido/oath.c b/src/fido/oath.c index c2e942a..75c1ae7 100644 --- a/src/fido/oath.c +++ b/src/fido/oath.c @@ -385,7 +385,7 @@ int cmd_calculate() { return SW_DATA_INVALID(); } asn1_ctx_t ctxe; - asn1_ctx_init(file_get_data(ef), file_get_size(ef), &ctxi); + asn1_ctx_init(file_get_data(ef), file_get_size(ef), &ctxe); if (asn1_find_tag(&ctxe, TAG_KEY, &key) == false) { return SW_INCORRECT_PARAMS(); }