mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-13 02:53:46 +00:00
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 <oliver@schinagl.nl>
This commit is contained in:
@@ -271,8 +271,8 @@ write_card(bool write_otp, bool write_lock, bool write_uid)
|
|||||||
} else {
|
} else {
|
||||||
if (!check_magic()) {
|
if (!check_magic()) {
|
||||||
printf("\nUnable to unlock card - are you sure the card is magic?\n");
|
printf("\nUnable to unlock card - are you sure the card is magic?\n");
|
||||||
return false;
|
|
||||||
bFailure = false;
|
bFailure = false;
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user