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 <[email protected]>
---
 plugins/nfctype2.c | 1 +
 1 file changed, 1 insertion(+)

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);
        }
-- 
2.13.0

Reply via email to