]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
fixed the mifare bug
authordouniwan5788 <douniwan5788@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 6 Jul 2012 07:06:43 +0000 (07:06 +0000)
committerdouniwan5788 <douniwan5788@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Fri, 6 Jul 2012 07:06:43 +0000 (07:06 +0000)
armsrc/iso14443a.c

index 5cd7ea78989c4aabe63de73d42a177c74a16cfee..bae80b8e223c0f34d70ad98576b91fa9c3453e91 100644 (file)
@@ -1925,7 +1925,7 @@ void ReaderMifare(uint32_t parameter)
                {
                        if ( (parameter != 0) && (memcmp(nt, nt_noattack, 4) == 0) ) continue;
 
-                       isNULL = (nt_attacked[0] == 0) && (nt_attacked[1] == 0) && (nt_attacked[2] == 0) && (nt_attacked[3] == 0);
+                       isNULL = !(nt_attacked[0] == 0) && (nt_attacked[1] == 0) && (nt_attacked[2] == 0) && (nt_attacked[3] == 0);
                        if ( (isNULL != 0 ) && (memcmp(nt, nt_attacked, 4) != 0) ) continue;
 
                        if (nt_diff == 0)
Impressum, Datenschutz