mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
image-fit: Fix signature checking
On signature verification failures fit_image_verify() should exit with error. Signed-off-by: Andrej Rosano <andrej@inversepath.com>
This commit is contained in:
parent
81fd858cbe
commit
84ca65aa4b
1 changed files with 3 additions and 1 deletions
|
@ -1030,8 +1030,10 @@ int fit_image_verify(const void *fit, int image_noffset)
|
|||
strlen(FIT_SIG_NODENAME))) {
|
||||
ret = fit_image_check_sig(fit, noffset, data,
|
||||
size, -1, &err_msg);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
puts("- ");
|
||||
goto error;
|
||||
}
|
||||
else
|
||||
puts("+ ");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue