From 4429888b9325d200b699a90f7a0e1a07d08f09c0 Mon Sep 17 00:00:00 2001 From: andrew Date: Wed, 6 Feb 2019 17:42:10 +0100 Subject: [PATCH] Use error_shutdown() to display 'Too many wrong PIN attempts. Storage has been wiped.' --- storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage.c b/storage.c index c0e2d4342d..ec856f7de5 100644 --- a/storage.c +++ b/storage.c @@ -730,7 +730,7 @@ secbool storage_unlock(uint32_t pin) wait_random(); if (ctr >= PIN_MAX_TRIES) { storage_wipe(); - ensure(secfalse, "pin_fails_check_max"); + error_shutdown("Too many wrong PIN", "attempts. Storage has", "been wiped.", NULL); return secfalse; } @@ -779,7 +779,7 @@ secbool storage_unlock(uint32_t pin) wait_random(); if (ctr + 1 >= PIN_MAX_TRIES) { storage_wipe(); - ensure(secfalse, "pin_fails_check_max"); + error_shutdown("Too many wrong PIN", "attempts. Storage has", "been wiped.", NULL); } return secfalse; }