Cleaned non-magic exit

This commit is contained in:
Simon Yorkston 2015-11-18 23:11:59 +01:00
parent 0cece94778
commit 619b476028

View file

@ -385,6 +385,8 @@ main(int argc, const char *argv[])
} else if (iAction == 3) {
if (!check_magic()) {
printf("Card is not magic\n");
nfc_close(pnd);
nfc_exit(context);
exit(EXIT_FAILURE);
} else {
printf("Card is magic\n");