summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/dh/dh_ameth.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-05-30 06:24:16 +0000
committerderaadt <deraadt@openbsd.org>2014-05-30 06:24:16 +0000
commitf3f95c1e98f301fcfcdcd65ade3c29d5455d65cb (patch)
tree4826709437a1aa6a5868f1216c440fc8bfa921a8 /lib/libcrypto/dh/dh_ameth.c
parentmore: no need for null check before free (diff)
downloadwireguard-openbsd-f3f95c1e98f301fcfcdcd65ade3c29d5455d65cb.tar.xz
wireguard-openbsd-f3f95c1e98f301fcfcdcd65ade3c29d5455d65cb.zip
more: no need to null check before free; ok guenther
Diffstat (limited to 'lib/libcrypto/dh/dh_ameth.c')
-rw-r--r--lib/libcrypto/dh/dh_ameth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/dh/dh_ameth.c b/lib/libcrypto/dh/dh_ameth.c
index 119ac615a6e..fe3dfc40d1d 100644
--- a/lib/libcrypto/dh/dh_ameth.c
+++ b/lib/libcrypto/dh/dh_ameth.c
@@ -382,7 +382,7 @@ static int do_dh_print(BIO *bp, const DH *x, int indent,
err:
DHerr(DH_F_DO_DH_PRINT,reason);
}
- if (m != NULL) free(m);
+ free(m);
return(ret);
}