From d38012852ef3e08096b957bad9280023e9b0d264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Tue, 16 Jan 2024 15:33:04 +0100 Subject: [PATCH] Fix location of storage on just-initialized PIV --- src/state.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/state.rs b/src/state.rs index 0980ff2..02cf9ca 100644 --- a/src/state.rs +++ b/src/state.rs @@ -547,8 +547,7 @@ impl Persistent { let mut state = Self { keys, timestamp: 0, - // In case of forgotten to rebind, ensure the bug is found - storage: Location::Volatile, + storage: options.storage, }; state.save(client); state.reset_pin(Self::DEFAULT_PIN, client)?;