]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/mifarecmd.c
FIX: LEGIC - potential stack corruption calculating CRC from user input
[proxmark3-svn] / armsrc / mifarecmd.c
index 70f3d4b18a12f4d4c5ad1000d4680aafd9ad9942..93eea2122708a9666306191426486e4ec50b7cf0 100644 (file)
@@ -75,7 +75,6 @@ void MifareReadBlock(uint8_t arg0, uint8_t arg1, uint8_t arg2, uint8_t *datain)
                break;\r
        }\r
        \r
-       //  ----------------------------- crypto1 destroy\r
        crypto1_destroy(pcs);\r
        \r
        if (MF_DBGLEVEL >= 2)   DbpString("READ BLOCK FINISHED");\r
@@ -717,10 +716,8 @@ void MifareAcquireEncryptedNonces(uint32_t arg0, uint32_t arg1, uint32_t flags,
                        memcpy(buf+i+8, &nt_par_enc, 1);\r
                        i += 9;\r
                }\r
-\r
                // wait for the card to become ready again\r
-               while(GetCountSspClk() < timeout);\r
-       \r
+               while(GetCountSspClk() < timeout);      \r
        }\r
 \r
        LED_C_OFF();\r
Impressum, Datenschutz