]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhfepa.c
FIX: Coverity, Identical code for different branches, CID #121315, added a messa...
[proxmark3-svn] / client / cmdhfepa.c
index e9c63f20b02f7f88fae741f4e24780a763bff910..68176bf664996217ead1413ae57940f99d0709e5 100644 (file)
@@ -58,13 +58,13 @@ int CmdHFEPACollectPACENonces(const char *Cmd)
                        }
                        // print nonce
                        PrintAndLog("Length: %d, Nonce: %s", nonce_length, nonce);
+                       free(nonce);
                }
                if (i < n - 1) {
                        sleep(d);
                }
        }
        PrintAndLog("End: %u", time(NULL));
-
        return 1;
 }
 
@@ -197,9 +197,10 @@ int CmdHelp(const char *Cmd)
 int CmdHFEPA(const char *Cmd)
 {
        // flush
-       WaitForResponseTimeout(CMD_ACK,NULL,100);
+       clearCommandBuffer();
+       //WaitForResponseTimeout(CMD_ACK,NULL,100);
 
        // parse
-  CmdsParse(CommandTable, Cmd);
-  return 0;
+       CmdsParse(CommandTable, Cmd);
+       return 0;
 }
Impressum, Datenschutz