mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-01 05:07:03 +08:00
cppcheck
This commit is contained in:
parent
ddaa884064
commit
e2f59d215f
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ int mifare_sendcmd_short(struct Crypto1State *pcs, uint8_t crypted, uint8_t cmd,
|
||||||
AddCrc14A(dcmd, 2);
|
AddCrc14A(dcmd, 2);
|
||||||
memcpy(ecmd, dcmd, sizeof(dcmd));
|
memcpy(ecmd, dcmd, sizeof(dcmd));
|
||||||
|
|
||||||
if (crypted) {
|
if (pcs && crypted) {
|
||||||
par[0] = 0;
|
par[0] = 0;
|
||||||
for (pos = 0; pos < 4; pos++) {
|
for (pos = 0; pos < 4; pos++) {
|
||||||
ecmd[pos] = crypto1_byte(pcs, 0x00, 0) ^ dcmd[pos];
|
ecmd[pos] = crypto1_byte(pcs, 0x00, 0) ^ dcmd[pos];
|
||||||
|
|
Loading…
Reference in a new issue