1
0
Fork 0

image-fit: Fix signature checking

On signature verification failures fit_image_verify() should
exit with error.

Signed-off-by: Andrej Rosano <andrej@inversepath.com>
utp
Andrej Rosano 2015-10-14 17:45:40 +02:00 committed by Tom Rini
parent 81fd858cbe
commit 84ca65aa4b
1 changed files with 3 additions and 1 deletions

View File

@ -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("+ ");
}