diff options
author | Andrej Rosano <andrej@inversepath.com> | 2015-10-14 17:45:40 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-10-19 17:06:16 -0400 |
commit | 84ca65aa4bd0d03867e9e49805201d0564d3ffb0 (patch) | |
tree | 4c9b833ed0153b7b771e8d36536e9bc24c294ba0 /common/image-fit.c | |
parent | 81fd858cbe91592b95065263f43bd6d5ddbd12fc (diff) | |
download | u-boot-84ca65aa4bd0d03867e9e49805201d0564d3ffb0.tar.gz u-boot-84ca65aa4bd0d03867e9e49805201d0564d3ffb0.tar.bz2 u-boot-84ca65aa4bd0d03867e9e49805201d0564d3ffb0.zip |
image-fit: Fix signature checking
On signature verification failures fit_image_verify() should
exit with error.
Signed-off-by: Andrej Rosano <andrej@inversepath.com>
Diffstat (limited to 'common/image-fit.c')
-rw-r--r-- | common/image-fit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/image-fit.c b/common/image-fit.c index 28f7aa83ba..c531ee74d7 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -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("+ "); } |