From 281a0e7d464a74832bde5b13a155a8a87341bd66 Mon Sep 17 00:00:00 2001 From: Ayoub Zaki Date: Fri, 13 Dec 2024 18:33:46 +0100 Subject: [PATCH] verify_stm32_image: return -1 in case of verification error --- stm32mp-sign-tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stm32mp-sign-tool.cpp b/stm32mp-sign-tool.cpp index b1c90a8..8aab1c6 100644 --- a/stm32mp-sign-tool.cpp +++ b/stm32mp-sign-tool.cpp @@ -236,7 +236,7 @@ int sign_stm32_image(std::vector& image, EC_KEY* key) { // Verify the signature if (verify_stm32_image(image, key)) { - return 1; + return -1; } return 0;