[libfreefare] push by yob...@gmail.com - Return EACCES when authentication to a MIFARE Classic tag fails on 2014-03-14 21:34 GMT

1 view
Skip to first unread message

libfr...@googlecode.com

unread,
Mar 14, 2014, 5:35:00 PM3/14/14
to nfc-tool...@googlegroups.com
Revision: c72a55993b0c
Author: Philippe Teuwen <yob...@gmail.com>
Date: Fri Mar 14 21:31:48 2014 UTC
Log: Return EACCES when authentication to a MIFARE Classic tag fails

http://code.google.com/p/libfreefare/source/detail?r=c72a55993b0c

Modified:
/libfreefare/mifare_classic.c

=======================================
--- /libfreefare/mifare_classic.c Wed Jun 5 16:30:39 2013 UTC
+++ /libfreefare/mifare_classic.c Fri Mar 14 21:31:48 2014 UTC
@@ -94,6 +94,8 @@
if (disconnect) { \
tag->active = false; \
} \
+ if (_res == NFC_EMFCAUTHFAIL) \
+ return errno = EACCES, -1; \
return errno = EIO, -1; \
} \
__##res##_n = _res; \
Reply all
Reply to author
Forward
0 new messages