cmp: remove NULL check.
authorPauli <paul.dale@oracle.com>
Sun, 28 Jun 2020 22:29:10 +0000 (08:29 +1000)
committerPauli <paul.dale@oracle.com>
Sun, 5 Jul 2020 03:20:09 +0000 (13:20 +1000)
Instead appease coverity by marking 1464986 as a false positive.
Coverity is confused by the engine reference counting.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12309)

apps/cmp.c

index 4a6074ba58cf0813672d11e651211139be607c73..87daa37dfa24a857819f7968ce95e69ac9dffd45 100644 (file)
@@ -3186,8 +3186,7 @@ int cmp_main(int argc, char **argv)
     X509_STORE_free(OSSL_CMP_CTX_get_certConf_cb_arg(cmp_ctx));
     OSSL_CMP_CTX_free(cmp_ctx);
     X509_VERIFY_PARAM_free(vpm);
-    if (engine != NULL) /* workaround for Coverity false positive */
-        release_engine(engine);
+    release_engine(engine);
 
     NCONF_free(conf); /* must not do as long as opt_... variables are used */
     OSSL_CMP_log_close();