diff --git a/utils/nfc-mfultralight.c b/utils/nfc-mfultralight.c index 3fab03e..4d25114 100644 --- a/utils/nfc-mfultralight.c +++ b/utils/nfc-mfultralight.c @@ -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");