]> git.baikalelectronics.ru Git - uboot.git/commit
lib/rsa: don't use NULL as key_id
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 28 Aug 2021 10:13:05 +0000 (12:13 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 14 Sep 2021 13:07:18 +0000 (09:07 -0400)
commitcc56736746e1c902ee6ab59c86509103c10c58f4
tree5f157bfa9dc5bcb75ed152d07f28a044687434ac
parent289706b94a65fa9a7be9832ef410ab32fe4039c4
lib/rsa: don't use NULL as key_id

If keydir is not provided but name is we want to use name as key_id.

But with the current coding name is only used on its own if it is NULL
and keydir is provided which never occurs.

Fixes: 16840b08c02b ("lib/rsa: Use the 'keyfile' argument from mkimage")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
lib/rsa/rsa-sign.c