If no signature could be verified and the loop terminates, the iterator
'noffset' has no meaningful value so name yields NULL.

Signed-off-by: Ludwig Nussel <[email protected]>
---

 boot/image-fit-sig.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/boot/image-fit-sig.c b/boot/image-fit-sig.c
index e7a768b9add..433df20281f 100644
--- a/boot/image-fit-sig.c
+++ b/boot/image-fit-sig.c
@@ -593,9 +593,8 @@ static int fit_config_verify_key(const void *fit, int 
conf_noffset,
                return 0;
 
 error:
-       printf(" error!\n%s for '%s' hash node in '%s' config node\n",
-              err_msg, fit_get_name(fit, noffset, NULL),
-              fit_get_name(fit, conf_noffset, NULL));
+       printf(" error!\n%s for '%s' config node\n",
+              err_msg, fit_get_name(fit, conf_noffset, NULL));
        return -EPERM;
 }
 
-- 
2.43.0

base-commit: ba7bf918dafcd093ad733b07ba490baeb20cf5da
branch: patch-signatures

Reply via email to