aboutsummaryrefslogtreecommitdiff
path: root/tools/fit_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/fit_common.c')
-rw-r--r--tools/fit_common.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/fit_common.c b/tools/fit_common.c
index d96085eaad3..9506390214c 100644
--- a/tools/fit_common.c
+++ b/tools/fit_common.c
@@ -26,7 +26,10 @@
int fit_verify_header(unsigned char *ptr, int image_size,
struct image_tool_params *params)
{
- return fdt_check_header(ptr);
+ if (fdt_check_header(ptr) != EXIT_SUCCESS || !fit_check_format(ptr))
+ return EXIT_FAILURE;
+
+ return EXIT_SUCCESS;
}
int fit_check_image_types(uint8_t type)