Skip to content
Snippets Groups Projects
Commit 84ca65aa authored by Andrej Rosano's avatar Andrej Rosano Committed by Tom Rini
Browse files

image-fit: Fix signature checking


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

Signed-off-by: default avatarAndrej Rosano <andrej@inversepath.com>
parent 81fd858c
No related branches found
No related tags found
No related merge requests found
...@@ -1030,8 +1030,10 @@ int fit_image_verify(const void *fit, int image_noffset) ...@@ -1030,8 +1030,10 @@ int fit_image_verify(const void *fit, int image_noffset)
strlen(FIT_SIG_NODENAME))) { strlen(FIT_SIG_NODENAME))) {
ret = fit_image_check_sig(fit, noffset, data, ret = fit_image_check_sig(fit, noffset, data,
size, -1, &err_msg); size, -1, &err_msg);
if (ret) if (ret) {
puts("- "); puts("- ");
goto error;
}
else else
puts("+ "); puts("+ ");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment