From 5230a0f8468176862025ece3894997562b3b7f6a Mon Sep 17 00:00:00 2001 From: Andrew Kozlik Date: Thu, 14 Feb 2019 20:51:50 +0100 Subject: [PATCH] config: Do not lock storage after completing loadDevice(). --- firmware/config.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/firmware/config.c b/firmware/config.c index e4824f4ab8..e7de2d0409 100644 --- a/firmware/config.c +++ b/firmware/config.c @@ -451,6 +451,7 @@ bool config_dumpNode(HDNodeType *node) void config_loadDevice(const LoadDevice *msg) { + session_clear(false); config_set_bool(KEY_IMPORTED, true); config_setPassphraseProtection(msg->has_passphrase_protection && msg->passphrase_protection); @@ -475,8 +476,6 @@ void config_loadDevice(const LoadDevice *msg) if (msg->has_u2f_counter) { config_setU2FCounter(msg->u2f_counter); } - - session_clear(true); } void config_setLabel(const char *label)