fix coverity CID 349331

This commit is contained in:
iceman1001 committed 2021-06-21 07:30:46 +02:00
1 parent 0e7e13db7d
commit 0f6b6cb650
1 file changed
+1
+1
View File
@@ -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;
}