fix coverity CID 349331
This commit is contained in:
1 parent
0e7e13db7d
commit
0f6b6cb650
1 file changed
+1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user