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:
Andrej Rosano authored and Tom Rini committed 2015-10-19 17:06:16 -04:00
1 parent 81fd858cbe
commit 84ca65aa4b
1 file changed
+3 -1
+3 -1
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("+ ");
}