X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/b69adb794594cc7ea43d3aa70aab091265195abf..5de71ee6bf8abce63566637c4d50f0cd2e0335e9:/client/cmdhfmfdesfire.c diff --git a/client/cmdhfmfdesfire.c b/client/cmdhfmfdesfire.c index f2c53dbf..5eada6e9 100644 --- a/client/cmdhfmfdesfire.c +++ b/client/cmdhfmfdesfire.c @@ -33,8 +33,8 @@ int CmdHF14AMfDESAuth(const char *Cmd){ uint8_t blockNo = 0; //keyNo=0; - uint32_t cuid=0; - uint8_t reply[16]; + uint32_t cuid = 0; + uint8_t reply[16] = {0x00}; //DES_cblock r1_b1; uint8_t b1[8]={ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; uint8_t b2[8]={ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; @@ -126,8 +126,8 @@ int CmdHF14AMfAESAuth(const char *Cmd){ uint8_t blockNo = 0; //keyNo=0; - uint32_t cuid=0; - uint8_t reply[32]; + uint32_t cuid = 0; + uint8_t reply[32] = {0x00}; //DES_cblock r1_b1; //unsigned char * b1, b2, nr, b0, r0, r1; @@ -239,7 +239,8 @@ static command_t CommandTable[] = int CmdHFMFDesfire(const char *Cmd){ // flush - WaitForResponseTimeout(CMD_ACK,NULL,100); + clearCommandBuffer(); + //WaitForResponseTimeout(CMD_ACK,NULL,100); CmdsParse(CommandTable, Cmd); return 0; }