mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-22 14:23:50 -07:00
fix coverity CID 349331
This commit is contained in:
parent
0e7e13db7d
commit
0f6b6cb650
1 changed files with 1 additions and 0 deletions
|
@ -346,6 +346,7 @@ void mifare_kdf_an10922(const desfirekey_t key, const uint8_t *data, size_t len)
|
|||
uint8_t *ivect = calloc(kbs, sizeof(uint8_t));
|
||||
if (ivect == NULL) {
|
||||
PrintAndLogEx(WARNING, "failed to allocate memory");
|
||||
free(buffer);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue