1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-03-05 09:46:07 +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:
andrew 2019-02-06 13:47:09 +01:00
parent 47cd563c81
commit 2862d679ac

View File

@ -982,7 +982,7 @@ uint32_t storage_get_pin_rem(void)
secbool storage_change_pin(uint32_t oldpin, uint32_t newpin)
{
if (sectrue != initialized || sectrue != unlocked) {
if (sectrue != initialized) {
return secfalse;
}
if (sectrue != storage_unlock(oldpin)) {