projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rsa: Fix two errors in the implementation
[platform/kernel/u-boot.git]
/
lib
/
rsa
/
rsa-sign.c
diff --git
a/lib/rsa/rsa-sign.c
b/lib/rsa/rsa-sign.c
index
f4d4338
..
5d9716f
100644
(file)
--- a/
lib/rsa/rsa-sign.c
+++ b/
lib/rsa/rsa-sign.c
@@
-76,6
+76,7
@@
static int rsa_get_pub_key(const char *keydir, const char *name, RSA **rsap)
rsa = EVP_PKEY_get1_RSA(key);
if (!rsa) {
rsa_err("Couldn't convert to a RSA style key");
+ ret = -EINVAL;
goto err_rsa;
}
fclose(f);