char filename[FILE_PATH_SIZE]={0};\r
int keycnt = 0;\r
uint8_t stKeyBlock = 20;\r
- uint8_t *keyBlock = NULL, *p;\r
+ uint8_t *keyBlock = NULL, *p = NULL;\r
keyBlock = calloc(stKeyBlock, 6);\r
if (keyBlock == NULL) return 1;\r
\r
getchar();\r
printf("\naborted via keyboard!\n");\r
free(keyBlock);\r
- free(p);\r
return 0;\r
}\r
\r
if ( !AquireData(T55x7_PAGE0, T55x7_CONFIGURATION_BLOCK, TRUE, testpwd)) {\r
PrintAndLog("Aquireing data from device failed. Quitting");\r
free(keyBlock);\r
- free(p);\r
return 0;\r
}\r
\r
if ( found ) {\r
PrintAndLog("Found valid password: [%08X]", testpwd);\r
free(keyBlock);\r
- free(p);\r
return 0;\r
} \r
}\r
PrintAndLog("Password NOT found.");\r
free(keyBlock);\r
- free(p);\r
return 0;\r
}\r
\r