Skip to content

Commit

Permalink
Fix location of storage on just-initialized PIV
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Jan 16, 2024
1 parent 2c948a9 commit d380128
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down

0 comments on commit d380128

Please sign in to comment.