projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix error codes.
[oweals/openssl.git]
/
apps
/
genrsa.c
diff --git
a/apps/genrsa.c
b/apps/genrsa.c
index 09b0b1969001e6d64f67bf88562844b19c0d0c87..5759acbf9bbe078349a430d06803b13c9d54fb21 100644
(file)
--- a/
apps/genrsa.c
+++ b/
apps/genrsa.c
@@
-269,6
+269,10
@@
bad:
BIO_printf(bio_err,"Generating RSA private key, %d bit long modulus\n",
num);
+ rsa = RSA_new();
+ if (!rsa)
+ goto err;
+
if (use_x931)
{
BIGNUM *pubexp;