mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-03 22:53:58 +08:00
fix coverity 290111
This commit is contained in:
parent
96076c1945
commit
f5efcc43f0
1 changed files with 10 additions and 3 deletions
|
@ -4073,15 +4073,22 @@ static int CmdHF14aDesChk(const char *Cmd) {
|
|||
if (dict_filenamelen && endFilePosition) {
|
||||
if (!verbose)
|
||||
printf("d");
|
||||
|
||||
uint32_t keycnt = 0;
|
||||
res = loadFileDICTIONARYEx((char *)dict_filename, deskeyList, sizeof(deskeyList), NULL, 16, &keycnt, endFilePosition, &endFilePosition, false);
|
||||
deskeyListLen = keycnt;
|
||||
if (res == PM3_SUCCESS && endFilePosition)
|
||||
deskeyListLen = keycnt;
|
||||
|
||||
keycnt = 0;
|
||||
res = loadFileDICTIONARYEx((char *)dict_filename, aeskeyList, sizeof(aeskeyList), NULL, 16, &keycnt, endFilePosition, &endFilePosition, false);
|
||||
aeskeyListLen = keycnt;
|
||||
if (res == PM3_SUCCESS && endFilePosition)
|
||||
aeskeyListLen = keycnt;
|
||||
|
||||
keycnt = 0;
|
||||
res = loadFileDICTIONARYEx((char *)dict_filename, k3kkeyList, sizeof(k3kkeyList), NULL, 16, &keycnt, endFilePosition, &endFilePosition, false);
|
||||
k3kkeyListLen = keycnt;
|
||||
if (res == PM3_SUCCESS && endFilePosition)
|
||||
k3kkeyListLen = keycnt;
|
||||
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue