diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-07-26 16:06:41 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-07-26 16:06:41 +0000 |
commit | d36e9d160b4a73d8c6d17cfc99655ba50f8c7247 (patch) | |
tree | cefbfa10fd6655aa8f07eaeb8a76a4d780908982 /apps | |
parent | e58e78cab2d41afce5877dca5025467f3d0a08dc (diff) |
Make genrsa work again.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/genrsa.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/genrsa.c b/apps/genrsa.c index 09b0b19690..5759acbf9b 100644 --- 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; |