fix CID #405223 - use after free, all callers must handle bad returns properly

This commit is contained in:
iceman1001 2023-03-04 20:36:28 +01:00
parent f9da8615e4
commit aebbdaea2d

View file

@ -3572,7 +3572,6 @@ static int DesfireCreateFileParameters(
bool userawfrights = false;
if (frightsid) {
if (CLIGetUint32Hex(ctx, frightsid, 0xeeee, &frights, &userawfrights, 2, "File rights must have 2 bytes length")) {
CLIParserFree(ctx);
return PM3_EINVARG;
}
}