Fix location of storage on just-initialized PIV

This commit is contained in:
Sosthène Guédon
2024-01-16 15:33:04 +01:00
parent 2c948a966f
commit d38012852e
+1 -2
View File
@@ -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)?;