diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-02-28 16:01:41 +0100 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-02-28 17:40:08 -0500 |
commit | 17fa4e8eda466dc36fd0c332bb7adc4f331dd480 (patch) | |
tree | 0290cf7e32b2f96aa0999f5b334e49314c2f7f41 | |
parent | 31ba0e17585bd16e089afa3a44979ccd9561182a (diff) |
GH715: Missed some null-check-removals. follow commits 412bafdcf5, and 7c96dbcdab
Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
-rw-r--r-- | crypto/dsa/dsa_lib.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/dsa/dsa_lib.c b/crypto/dsa/dsa_lib.c index 9f4ddfdf70..f89297313a 100644 --- a/crypto/dsa/dsa_lib.c +++ b/crypto/dsa/dsa_lib.c @@ -144,8 +144,7 @@ DSA *DSA_new_method(ENGINE *engine) CRYPTO_new_ex_data(CRYPTO_EX_INDEX_DSA, ret, &ret->ex_data); if ((ret->meth->init != NULL) && !ret->meth->init(ret)) { #ifndef OPENSSL_NO_ENGINE - if (ret->engine) - ENGINE_finish(ret->engine); + ENGINE_finish(ret->engine); #endif CRYPTO_free_ex_data(CRYPTO_EX_INDEX_DSA, ret, &ret->ex_data); OPENSSL_free(ret); @@ -171,8 +170,7 @@ void DSA_free(DSA *r) if (r->meth->finish) r->meth->finish(r); #ifndef OPENSSL_NO_ENGINE - if (r->engine) - ENGINE_finish(r->engine); + ENGINE_finish(r->engine); #endif CRYPTO_free_ex_data(CRYPTO_EX_INDEX_DSA, r, &r->ex_data); |