diff options
author | Matt Caswell <matt@openssl.org> | 2015-10-30 11:18:04 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-11-09 22:48:41 +0000 |
commit | 96487cddd408e247819c4f122bd86e53ae4bd6c0 (patch) | |
tree | f6b424b2ce4d1d6ae2604b26d9fb956e13f932a2 /apps/genrsa.c | |
parent | 90945fa31a42dcf3beb90540c618e4d627c595ea (diff) | |
download | openssl-96487cddd408e247819c4f122bd86e53ae4bd6c0.tar.gz |
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) |