lib/hcrypto: RSA_new_method pass correct ptr to ENGINE_finish

Pass rsa->engine not engine.

Change-Id: I1251c50898b267d14cbf0bb2adb40516d24fa369
This commit is contained in:
Jeffrey Altman
2022-01-17 21:28:37 -05:00
parent 94a7e97e09
commit ee3cd2e4a9

View File

@@ -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;
}