summaryrefslogtreecommitdiffstats
path: root/apps/genrsa.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-10-30 12:18:04 +0100
committerMatt Caswell <matt@openssl.org>2015-11-09 23:48:41 +0100
commit96487cddd408e247819c4f122bd86e53ae4bd6c0 (patch)
treef6b424b2ce4d1d6ae2604b26d9fb956e13f932a2 /apps/genrsa.c
parentContinue standardising malloc style for libcrypto (diff)
downloadopenssl-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.c4
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)