commit | 731c8855b186718d10580ef97f9066a152fbe1d3 | [log] [tgz] |
---|---|---|
author | Andrej Rosano <andrej@inversepath.com> | Wed Oct 14 17:45:40 2015 +0200 |
committer | Tom Rini <trini@konsulko.com> | Mon Oct 19 17:06:16 2015 -0400 |
tree | 4c9b833ed0153b7b771e8d36536e9bc24c294ba0 | |
parent | 8ed5b0bfe1d7178962b87a02e01eea729e88396e [diff] [blame] |
image-fit: Fix signature checking On signature verification failures fit_image_verify() should exit with error. Signed-off-by: Andrej Rosano <andrej@inversepath.com>
diff --git a/common/image-fit.c b/common/image-fit.c index 28f7aa8..c531ee7 100644 --- a/common/image-fit.c +++ b/common/image-fit.c
@@ -1030,8 +1030,10 @@ 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("+ "); }