summaryrefslogtreecommitdiffstats
path: root/apps/lib
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-07-03 10:11:33 +1000
committerPauli <paul.dale@oracle.com>2020-07-05 13:20:09 +1000
commitc996f71bab433c5d0f75945206a8cfd422829a49 (patch)
tree6924dd9d4eac2d46f850bd3208d8676e0ad5992f /apps/lib
parent2f142901ca7f729a20444a541ec1cb8516954056 (diff)
apps: remove NULL check imn release_engine since ENGINE_free also does it.
Reviewed-by: Tim Hudson <tjh@openssl.org> (Merged from https://github.com/openssl/openssl/pull/12309)
Diffstat (limited to 'apps/lib')
-rw-r--r--apps/lib/apps.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/lib/apps.c b/apps/lib/apps.c
index 6c9d62fb62..3e4cc288b1 100644
--- a/apps/lib/apps.c
+++ b/apps/lib/apps.c
@@ -1156,9 +1156,8 @@ ENGINE *setup_engine_methods(const char *id, unsigned int methods, int debug)
void release_engine(ENGINE *e)
{
#ifndef OPENSSL_NO_ENGINE
- if (e != NULL)
- /* Free our "structural" reference. */
- ENGINE_free(e);
+ /* Free our "structural" reference. */
+ ENGINE_free(e);
#endif
}