From 7fe09e52bd50e4666d81358b6c8013b81af2dd75 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 13 May 2019 15:46:23 +0200 Subject: [PATCH] core/cache: use different default value for passphrase_fprint --- core/src/apps/common/cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/apps/common/cache.py b/core/src/apps/common/cache.py index 61244dc309..0fcfdc6d91 100644 --- a/core/src/apps/common/cache.py +++ b/core/src/apps/common/cache.py @@ -4,7 +4,7 @@ from apps.common import storage _cached_seed = None _cached_passphrase = None -_cached_passphrase_fprint = None +_cached_passphrase_fprint = b"\x00\x00\x00\x00" def get_state(prev_state: bytes = None, passphrase: str = None) -> bytes: @@ -38,7 +38,7 @@ def get_passphrase(): def get_passphrase_fprint(): - return _cached_passphrase_fprint or "" + return _cached_passphrase_fprint def has_passphrase():