From 93083ecb4b0bc75e90d93a057ab23443e1cb3994 Mon Sep 17 00:00:00 2001 From: TamtamHero <10632523+TamtamHero@users.noreply.github.com> Date: Mon, 22 Mar 2021 14:40:54 +0100 Subject: [PATCH] Reset tmpCtx entirely --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index e64b4c6..bf0f54b 100644 --- a/src/main.c +++ b/src/main.c @@ -71,7 +71,6 @@ chain_config_t *chainConfig; void reset_app_context() { // PRINTF("!!RESET_APP_CONTEXT\n"); appState = APP_STATE_IDLE; - memset(tmpCtx.transactionContext.tokenSet, 0, MAX_TOKEN); called_from_swap = false; #ifdef HAVE_STARKWARE quantumSet = false; @@ -79,6 +78,7 @@ void reset_app_context() { #ifdef HAVE_ETH2 eth2WithdrawalIndex = 0; #endif + memset((uint8_t *) &tmpCtx, 0, sizeof(tmpCtx)); memset((uint8_t *) &txContext, 0, sizeof(txContext)); memset((uint8_t *) &tmpContent, 0, sizeof(tmpContent)); }