Commit 84ca65aa authored by Andrej Rosano's avatar Andrej Rosano Committed by Tom Rini

image-fit: Fix signature checking

On signature verification failures fit_image_verify() should
exit with error.
Signed-off-by: 's avatarAndrej Rosano <andrej@inversepath.com>
parent 81fd858c
......@@ -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("+ ");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment