set engine to NULL after releasing it

This commit is contained in:
Dr. Stephen Henson 2009-11-12 19:24:34 +00:00
parent b2f364ec62
commit 9b2cfb890c

View file

@ -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)