Skip to content

Commit

Permalink
Fix puk change
Browse files Browse the repository at this point in the history
Fix #37
  • Loading branch information
sosthene-nitrokey committed Dec 13, 2023
1 parent caed9e4 commit e959556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ impl Persistent {
) -> bool {
let old_puk = Bytes::from_slice(&old_value.0).expect("Convertion of static array");
let new_puk = Bytes::from_slice(&new_value.0).expect("Convertion of static array");
try_syscall!(client.change_pin(PinType::UserPin, old_puk, new_puk))
try_syscall!(client.change_pin(PinType::Puk, old_puk, new_puk))
.map(|r| r.success)
.unwrap_or(false)
}
Expand Down

0 comments on commit e959556

Please sign in to comment.