diff --git a/libfreefare/mifare_classic.c b/libfreefare/mifare_classic.c index 71f8c75..5a60273 100644 --- a/libfreefare/mifare_classic.c +++ b/libfreefare/mifare_classic.c @@ -94,6 +94,8 @@ if (disconnect) { \ tag->active = false; \ } \ + if (_res == NFC_EMFCAUTHFAIL) \ + return errno = EACCES, -1; \ return errno = EIO, -1; \ } \ __##res##_n = _res; \