set engine to NULL after releasing it
This commit is contained in:
@@ -220,7 +220,10 @@ static int pkey_set_type(EVP_PKEY *pkey, int type, const char *str, int len)
|
|||||||
#ifndef OPENSSL_NO_ENGINE
|
#ifndef OPENSSL_NO_ENGINE
|
||||||
/* If we have an ENGINE release it */
|
/* If we have an ENGINE release it */
|
||||||
if (pkey->engine)
|
if (pkey->engine)
|
||||||
|
{
|
||||||
ENGINE_finish(pkey->engine);
|
ENGINE_finish(pkey->engine);
|
||||||
|
pkey->engine = NULL;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
if (str)
|
if (str)
|
||||||
|
Reference in New Issue
Block a user