From a4bc1b9f6c62491d6b1f102707a7adf8cc2195da Mon Sep 17 00:00:00 2001 From: Olliver Schinagl Date: Wed, 11 May 2016 16:27:52 +0200 Subject: [PATCH] nfc-mfultralight: also set failure state on uid write error Currently, we return false, and after turning set the bFailure state. This is of course not possible. Signed-off-by: Olliver Schinagl --- utils/nfc-mfultralight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/nfc-mfultralight.c b/utils/nfc-mfultralight.c index 82707a9..4b9f39d 100644 --- a/utils/nfc-mfultralight.c +++ b/utils/nfc-mfultralight.c @@ -271,8 +271,8 @@ write_card(bool write_otp, bool write_lock, bool write_uid) } else { if (!check_magic()) { printf("\nUnable to unlock card - are you sure the card is magic?\n"); - return false; bFailure = false; + return false; } }