mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-10 02:04:39 +08:00
cppcheck fixes call from hf_aveful with NULL
This commit is contained in:
parent
3c07e264c9
commit
a9b265ff1b
1 changed files with 4 additions and 1 deletions
|
@ -68,9 +68,12 @@ uint8_t mf_crypto1_encrypt4bit(struct Crypto1State *pcs, uint8_t data) {
|
|||
|
||||
// send X byte basic commands
|
||||
int mifare_sendcmd(uint8_t cmd, uint8_t *data, uint8_t data_size, uint8_t *answer, uint8_t *answer_parity, uint32_t *timing) {
|
||||
|
||||
uint8_t dcmd[data_size + 3];
|
||||
dcmd[0] = cmd;
|
||||
memcpy(dcmd + 1, data, data_size);
|
||||
if (data_size > 0)
|
||||
memcpy(dcmd + 1, data, data_size);
|
||||
|
||||
AddCrc14A(dcmd, data_size + 1);
|
||||
ReaderTransmit(dcmd, sizeof(dcmd), timing);
|
||||
int len = ReaderReceive(answer, answer_parity);
|
||||
|
|
Loading…
Reference in a new issue