mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
fix #1186
This commit is contained in:
parent
d405103812
commit
e22cb088c1
1 changed files with 5 additions and 5 deletions
|
@ -2757,11 +2757,6 @@ static int CmdHF14AMfUPwdGen(const char *Cmd) {
|
|||
if (selftest)
|
||||
return generator_selftest();
|
||||
|
||||
if (u_len != 7) {
|
||||
PrintAndLogEx(WARNING, "Key must be 7 hex bytes");
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
|
||||
if (use_tag) {
|
||||
// read uid from tag
|
||||
clearCommandBuffer();
|
||||
|
@ -2785,6 +2780,11 @@ static int CmdHF14AMfUPwdGen(const char *Cmd) {
|
|||
return PM3_ESOFT;
|
||||
}
|
||||
memcpy(uid, card.uid, sizeof(uid));
|
||||
} else {
|
||||
if (u_len != 7) {
|
||||
PrintAndLogEx(WARNING, "Key must be 7 hex bytes");
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
}
|
||||
|
||||
PrintAndLogEx(INFO, "---------------------------------");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue