Message ID | 20170615182516.4508-13-mgreer@animalcreek.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Samuel Ortiz |
Headers | show |
diff --git a/plugins/nfctype2.c b/plugins/nfctype2.c index 559ecb0..f0f1158 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); }
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> --- plugins/nfctype2.c | 1 + 1 file changed, 1 insertion(+)