From ee3cd2e4a92f3997e8100290e0dd080252b2b2b3 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Mon, 17 Jan 2022 21:28:37 -0500 Subject: [PATCH] lib/hcrypto: RSA_new_method pass correct ptr to ENGINE_finish Pass rsa->engine not engine. Change-Id: I1251c50898b267d14cbf0bb2adb40516d24fa369 --- lib/hcrypto/rsa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hcrypto/rsa.c b/lib/hcrypto/rsa.c index c99b2b6cb..3638677c3 100644 --- a/lib/hcrypto/rsa.c +++ b/lib/hcrypto/rsa.c @@ -114,7 +114,7 @@ RSA_new_method(ENGINE *engine) if (rsa->engine) { rsa->meth = ENGINE_get_RSA(rsa->engine); if (rsa->meth == NULL) { - ENGINE_finish(engine); + ENGINE_finish(rsa->engine); free(rsa); return 0; }