Search Linux Wireless

[PATCH 12/23] nfctype2: Don't read tags with bad magic number

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
---
 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




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux