diff options
| author | tedu <> | 2014-05-30 02:52:11 +0000 |
|---|---|---|
| committer | tedu <> | 2014-05-30 02:52:11 +0000 |
| commit | c442171f7692d3610a7aa5a08593cabf7253c5af (patch) | |
| tree | a802460259115af2ecf6be49736b1b6a09173232 /src/lib/libcrypto/dh/dh_lib.c | |
| parent | 60f672682a47559e679725da4d8dc8efa1ddceff (diff) | |
| download | openbsd-c442171f7692d3610a7aa5a08593cabf7253c5af.tar.gz openbsd-c442171f7692d3610a7aa5a08593cabf7253c5af.tar.bz2 openbsd-c442171f7692d3610a7aa5a08593cabf7253c5af.zip | |
no need for null check before free. from Brendan MacDonell
Diffstat (limited to 'src/lib/libcrypto/dh/dh_lib.c')
| -rw-r--r-- | src/lib/libcrypto/dh/dh_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/dh/dh_lib.c b/src/lib/libcrypto/dh/dh_lib.c index e09c5fdd21..7a680cc5b4 100644 --- a/src/lib/libcrypto/dh/dh_lib.c +++ b/src/lib/libcrypto/dh/dh_lib.c | |||
| @@ -193,7 +193,7 @@ void DH_free(DH *r) | |||
| 193 | if (r->g != NULL) BN_clear_free(r->g); | 193 | if (r->g != NULL) BN_clear_free(r->g); |
| 194 | if (r->q != NULL) BN_clear_free(r->q); | 194 | if (r->q != NULL) BN_clear_free(r->q); |
| 195 | if (r->j != NULL) BN_clear_free(r->j); | 195 | if (r->j != NULL) BN_clear_free(r->j); |
| 196 | if (r->seed) free(r->seed); | 196 | free(r->seed); |
| 197 | if (r->counter != NULL) BN_clear_free(r->counter); | 197 | if (r->counter != NULL) BN_clear_free(r->counter); |
| 198 | if (r->pub_key != NULL) BN_clear_free(r->pub_key); | 198 | if (r->pub_key != NULL) BN_clear_free(r->pub_key); |
| 199 | if (r->priv_key != NULL) BN_clear_free(r->priv_key); | 199 | if (r->priv_key != NULL) BN_clear_free(r->priv_key); |
