coverity CID 322665

This commit is contained in:
iceman1001 2021-05-14 08:06:01 +02:00
commit 3a54bc35fb

View file

@ -3641,6 +3641,7 @@ static int CmdHFiClassEncode(const char *Cmd) {
}
if (keylen != 16) {
PrintAndLogEx(ERR, "Failed to load transport key from file");
free(enckeyptr);
return PM3_EINVARG;
}
memcpy(enc_key, enckeyptr, sizeof(enc_key));