diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2014-05-30 02:52:12 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2014-05-30 02:52:12 +0000 |
commit | 890019d42bea9ea72b2a114957766c9c1b3cb7e3 (patch) | |
tree | db57e71a5688e5229112337dcc33ca76da88d600 /lib/libcrypto/dh | |
parent | 8e9c3c8ab205533cebb588280a86d9ff2ec73fa2 (diff) |
no need for null check before free. from Brendan MacDonell
Diffstat (limited to 'lib/libcrypto/dh')
-rw-r--r-- | lib/libcrypto/dh/dh_lib.c | 2 |
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); |