aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Greer <mgreer@animalcreek.com>2017-02-22 03:53:53 +0000
committerSamuel Ortiz <sameo@linux.intel.com>2017-11-10 00:23:57 +0100
commite644b579a38e83a6e7756d96a016c220026421d7 (patch)
tree63f22b67c86feda235b8decdbd6f36bcea9474af
parentb161b6b6e01415bdf13ac472a3854d49b605a4a6 (diff)
downloadneard-e644b579a38e83a6e7756d96a016c220026421d7.tar.gz
nfctype2: Don't read tags with bad magic number
NFC Type 2 tags that have a bad magic number need to be reformatted so do not try to read them. Signed-off-by: Mark Greer <mgreer@animalcreek.com>
-rw-r--r--plugins/nfctype2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/nfctype2.c b/plugins/nfctype2.c
index 6cb3daa..dec9615 100644
--- a/plugins/nfctype2.c
+++ b/plugins/nfctype2.c
@@ -275,6 +275,7 @@ static int meta_recv(uint8_t *resp, int length, void *data)
if (TAG_DATA_NFC(cc) != TYPE2_MAGIC) {
DBG("Mark as blank tag");
near_tag_set_blank(tag, TRUE);
+ goto out_tag;
} else {
near_tag_set_blank(tag, FALSE);
}