set engine to NULL after releasing it
This commit is contained in:
parent
b2f364ec62
commit
9b2cfb890c
1 changed files with 3 additions and 0 deletions
|
@ -220,7 +220,10 @@ static int pkey_set_type(EVP_PKEY *pkey, int type, const char *str, int len)
|
|||
#ifndef OPENSSL_NO_ENGINE
|
||||
/* If we have an ENGINE release it */
|
||||
if (pkey->engine)
|
||||
{
|
||||
ENGINE_finish(pkey->engine);
|
||||
pkey->engine = NULL;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
if (str)
|
||||
|
|
Loading…
Reference in a new issue