Return EACCES when authentication to a MIFARE Classic tag fails
This commit is contained in:
parent
184c5dcbdf
commit
c72a55993b
1 changed files with 2 additions and 0 deletions
|
@ -94,6 +94,8 @@
|
|||
if (disconnect) { \
|
||||
tag->active = false; \
|
||||
} \
|
||||
if (_res == NFC_EMFCAUTHFAIL) \
|
||||
return errno = EACCES, -1; \
|
||||
return errno = EIO, -1; \
|
||||
} \
|
||||
__##res##_n = _res; \
|
||||
|
|
Loading…
Reference in a new issue