]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/mifareutil.c
Added work with "magic Chinese" card (card from: ouyangweidaxian@live.cn) with wipe...
[proxmark3-svn] / armsrc / mifareutil.c
index a88f21bca154916e31989bfdece0a8527c5665c8..c20a387a8f99f58087beda0b5b0becb6a72c2881 100644 (file)
@@ -311,7 +311,7 @@ int mifare_classic_halt(struct Crypto1State *pcs, uint32_t uid)
        // Mifare HALT\r
        uint8_t* receivedAnswer = mifare_get_bigbufptr();\r
 \r
-       len = mifare_sendcmd_short(pcs, 1, 0x50, 0x00, receivedAnswer);\r
+       len = mifare_sendcmd_short(pcs, pcs == NULL ? 0:1, 0x50, 0x00, receivedAnswer);\r
        if (len != 0) {\r
                if (MF_DBGLEVEL >= 1)   Dbprintf("halt error. response len: %x", len);  \r
                return 1;\r
Impressum, Datenschutz