From a877d2629b8a512aae550be68b9afd91eae22f19 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Thu, 3 Sep 2020 16:51:06 +0200 Subject: [PATCH] apps/cmp.c: clear leftover errors on loading libengines.so etc. Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/12824) --- apps/cmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/cmp.c b/apps/cmp.c index 7524930b8f..3e7b010fcb 100644 --- a/apps/cmp.c +++ b/apps/cmp.c @@ -2620,6 +2620,7 @@ int cmp_main(int argc, char **argv) char mock_server[] = "mock server:1"; int ret = 0; /* default: failure */ + ERR_clear_error(); /* clear leftover errors on loading libengines.so etc. */ if (argc <= 1) { opt_help(cmp_options); goto err;