1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-16 19:38:09 +00:00

config: Do not lock storage after completing loadDevice().

This commit is contained in:
Andrew Kozlik 2019-02-14 20:51:50 +01:00 committed by Pavol Rusnak
parent b4c0b59c89
commit 5230a0f846
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -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)