Skip to content

Commit

Permalink
nfc-mfultralight: also set failure state on uid write error
Browse files Browse the repository at this point in the history
Currently, we return false, and after turning set the bFailure state.
This is of course not possible.

Signed-off-by: Olliver Schinagl <[email protected]>
  • Loading branch information
oliv3r committed May 13, 2016
1 parent ed62b01 commit a4bc1b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/nfc-mfultralight.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit a4bc1b9

Please sign in to comment.