From: Dr. Stephen Henson Date: Sun, 26 Jul 2009 16:06:41 +0000 (+0000) Subject: Make genrsa work again. X-Git-Tag: OpenSSL_0_9_8m-beta1~156 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d36e9d160b4a73d8c6d17cfc99655ba50f8c7247;p=oweals%2Fopenssl.git Make genrsa work again. --- 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;