]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
apps: remove NULL check imn release_engine since ENGINE_free also does it.
authorPauli <paul.dale@oracle.com>
Fri, 3 Jul 2020 00:11:33 +0000 (10:11 +1000)
committerPauli <paul.dale@oracle.com>
Sun, 5 Jul 2020 03:20:09 +0000 (13:20 +1000)
Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12309)

apps/lib/apps.c

index 6c9d62fb626adb7677ab2dcbc605e71dfa1a52a4..3e4cc288b1512d7162fb01b8c1ba201aca26ae76 100644 (file)
@@ -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
 }