summaryrefslogtreecommitdiff
path: root/apps/dsaparam.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-10-30 11:18:04 +0000
committerMatt Caswell <matt@openssl.org>2015-11-09 22:48:41 +0000
commit96487cddd408e247819c4f122bd86e53ae4bd6c0 (patch)
treef6b424b2ce4d1d6ae2604b26d9fb956e13f932a2 /apps/dsaparam.c
parent90945fa31a42dcf3beb90540c618e4d627c595ea (diff)
downloadopenssl-new-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/dsaparam.c')
-rw-r--r--apps/dsaparam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dsaparam.c b/apps/dsaparam.c
index a0a3372f80..c591b5db53 100644
--- a/apps/dsaparam.c
+++ b/apps/dsaparam.c
@@ -208,14 +208,14 @@ int dsaparam_main(int argc, char **argv)
if (numbits > 0) {
cb = BN_GENCB_new();
- if (!cb) {
+ if (cb == NULL) {
BIO_printf(bio_err, "Error allocating BN_GENCB object\n");
goto end;
}
BN_GENCB_set(cb, dsa_cb, bio_err);
assert(need_rand);
dsa = DSA_new();
- if (!dsa) {
+ if (dsa == NULL) {
BIO_printf(bio_err, "Error allocating DSA object\n");
goto end;
}