[PATCH v4 02/16] keytoc: fail in case gen_key() fails
Ahmad Fatoum
a.fatoum at pengutronix.de
Wed Sep 25 01:53:32 PDT 2024
On 13.09.24 09:59, Sascha Hauer wrote:
> 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>
Reviewed-by: Ahmad Fatoum <a.fatoum 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[])
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list