[PATCH v4 02/16] keytoc: fail in case gen_key() fails
Sascha Hauer
s.hauer at pengutronix.de
Fri Sep 13 00:59:10 PDT 2024
In case of an error in gen_key() return an error code so that the keytoc
tool returns an error.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
scripts/keytoc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/keytoc.c b/scripts/keytoc.c
index 3ac42bc6d0..7e73c786a3 100644
--- a/scripts/keytoc.c
+++ b/scripts/keytoc.c
@@ -597,7 +597,7 @@ static int gen_key(const char *keyname, const char *path)
if (ret)
ret = gen_key_rsa(key, keyname, key_name_c);
- return 0;
+ return ret;
}
int main(int argc, char *argv[])
--
2.39.2
More information about the barebox
mailing list