forked from len0rd/rockbox
mkimxboot: fix bad return on internal error
Change-Id: I6aec9ec694568c15856b03322208f257181eca21
This commit is contained in:
parent
80c019e737
commit
b6cad07f33
1 changed files with 4 additions and 1 deletions
|
|
@ -390,7 +390,10 @@ enum imx_error_t mkimxboot(const char *infile, const char *bootfile,
|
||||||
{
|
{
|
||||||
byte a, b;
|
byte a, b;
|
||||||
if(convxdigit(imx_sums[i].md5sum[2 * j], &a) || convxdigit(imx_sums[i].md5sum[2 * j + 1], &b))
|
if(convxdigit(imx_sums[i].md5sum[2 * j], &a) || convxdigit(imx_sums[i].md5sum[2 * j + 1], &b))
|
||||||
return false;
|
{
|
||||||
|
printf("[ERR][INTERNAL] Bad checksum format: %s\n", imx_sums[i].md5sum);
|
||||||
|
return IMX_ERROR;
|
||||||
|
}
|
||||||
md5[j] = (a << 4) | b;
|
md5[j] = (a << 4) | b;
|
||||||
}
|
}
|
||||||
if(memcmp(file_md5sum, md5, 16) == 0)
|
if(memcmp(file_md5sum, md5, 16) == 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue