Update from 1.0.0-stable.
[oweals/openssl.git] / apps / genrsa.c
index fdc0d4a07dfe159ea8a5f8d38fa0b43ba36a3f2f..09b0b1969001e6d64f67bf88562844b19c0d0c87 100644 (file)
@@ -106,9 +106,9 @@ int MAIN(int argc, char **argv)
        char *inrand=NULL;
        BIO *out=NULL;
        BIGNUM *bn = BN_new();
-       RSA *rsa = RSA_new();
+       RSA *rsa = NULL;
 
-       if(!bn || !rsa) goto err;
+       if(!bn) goto err;
 
        apps_startup();
        BN_GENCB_set(&cb, genrsa_cb, bio_err);