From 421604a3954fe50c05e921387f408bfabab79a4c Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Thu, 21 Feb 2019 23:20:52 +0100 Subject: [PATCH] fix: sc bruteforce' - wrong assign --- client/cmdsmartcard.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/cmdsmartcard.c b/client/cmdsmartcard.c index 3860496de..f9b77dad0 100644 --- a/client/cmdsmartcard.c +++ b/client/cmdsmartcard.c @@ -946,8 +946,8 @@ static int smart_brute_sfi(bool decodeTLV){ return 0; } -static void smart_brute_options(bool decodeTLV){ - +static void smart_brute_options(bool decodeTLV) { + uint8_t* buf = calloc(USB_CMD_DATA_SIZE, sizeof(uint8_t)); if ( !buf ) return; @@ -1057,7 +1057,7 @@ int CmdSmartBruteforceSFI(const char *Cmd) { continue; size_t aidlen = strlen(aid); - char* caid = calloc( 8+2+aidlen+1, sizeof(uint8_t)); + caid = calloc( 8+2+aidlen+1, sizeof(uint8_t)); snprintf(caid, 8+2+aidlen+1, SELECT, aidlen >> 1, aid); int hexlen = 0;