Return EACCES when authentication to a MIFARE Classic tag fails

This commit is contained in:
Philippe Teuwen 2014-03-14 22:31:48 +01:00
parent 184c5dcbdf
commit c72a55993b

View file

@ -94,6 +94,8 @@
if (disconnect) { \
tag->active = false; \
} \
if (_res == NFC_EMFCAUTHFAIL) \
return errno = EACCES, -1; \
return errno = EIO, -1; \
} \
__##res##_n = _res; \