diff options
author | Matt Caswell <matt@openssl.org> | 2015-10-30 12:18:04 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-11-09 23:48:41 +0100 |
commit | 96487cddd408e247819c4f122bd86e53ae4bd6c0 (patch) | |
tree | f6b424b2ce4d1d6ae2604b26d9fb956e13f932a2 /apps/genrsa.c | |
parent | Continue standardising malloc style for libcrypto (diff) | |
download | openssl-96487cddd408e247819c4f122bd86e53ae4bd6c0.tar.xz openssl-96487cddd408e247819c4f122bd86e53ae4bd6c0.zip |
Continue standardisation of malloc handling in apps
continue on from previous commits but in the apps directory
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Diffstat (limited to 'apps/genrsa.c')
-rw-r--r-- | apps/genrsa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/genrsa.c b/apps/genrsa.c index b0e5e19b7e..89211971fa 100644 --- a/apps/genrsa.c +++ b/apps/genrsa.c @@ -114,7 +114,7 @@ int genrsa_main(int argc, char **argv) char *inrand = NULL, *prog, *hexe, *dece; OPTION_CHOICE o; - if (!bn || !cb) + if (bn == NULL || cb == NULL) goto end; BN_GENCB_set(cb, genrsa_cb, bio_err); @@ -185,7 +185,7 @@ int genrsa_main(int argc, char **argv) BIO_printf(bio_err, "Generating RSA private key, %d bit long modulus\n", num); rsa = e ? RSA_new_method(e) : RSA_new(); - if (!rsa) + if (rsa == NULL) goto end; if (non_fips_allow) |