summaryrefslogtreecommitdiff
path: root/lib/libcrypto/dh/dh_lib.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2014-05-30 02:52:12 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2014-05-30 02:52:12 +0000
commit890019d42bea9ea72b2a114957766c9c1b3cb7e3 (patch)
treedb57e71a5688e5229112337dcc33ca76da88d600 /lib/libcrypto/dh/dh_lib.c
parent8e9c3c8ab205533cebb588280a86d9ff2ec73fa2 (diff)
no need for null check before free. from Brendan MacDonell
Diffstat (limited to 'lib/libcrypto/dh/dh_lib.c')
-rw-r--r--lib/libcrypto/dh/dh_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/dh/dh_lib.c b/lib/libcrypto/dh/dh_lib.c
index e09c5fdd21c..7a680cc5b48 100644
--- a/lib/libcrypto/dh/dh_lib.c
+++ b/lib/libcrypto/dh/dh_lib.c
@@ -193,7 +193,7 @@ void DH_free(DH *r)
if (r->g != NULL) BN_clear_free(r->g);
if (r->q != NULL) BN_clear_free(r->q);
if (r->j != NULL) BN_clear_free(r->j);
- if (r->seed) free(r->seed);
+ free(r->seed);
if (r->counter != NULL) BN_clear_free(r->counter);
if (r->pub_key != NULL) BN_clear_free(r->pub_key);
if (r->priv_key != NULL) BN_clear_free(r->priv_key);