lib/hcrypto: RSA_new_method pass correct ptr to ENGINE_finish
Pass rsa->engine not engine. Change-Id: I1251c50898b267d14cbf0bb2adb40516d24fa369
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user