mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-06 02:06:08 +00:00
Do not require storage to be unlocked prior to calling storage_change_pin(). The function checks the old PIN anyway.
This commit is contained in:
parent
47cd563c81
commit
2862d679ac
@ -982,7 +982,7 @@ uint32_t storage_get_pin_rem(void)
|
|||||||
|
|
||||||
secbool storage_change_pin(uint32_t oldpin, uint32_t newpin)
|
secbool storage_change_pin(uint32_t oldpin, uint32_t newpin)
|
||||||
{
|
{
|
||||||
if (sectrue != initialized || sectrue != unlocked) {
|
if (sectrue != initialized) {
|
||||||
return secfalse;
|
return secfalse;
|
||||||
}
|
}
|
||||||
if (sectrue != storage_unlock(oldpin)) {
|
if (sectrue != storage_unlock(oldpin)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user