set engine to NULL after releasing it

This commit is contained in:
Dr. Stephen Henson 2009-11-12 19:25:37 +00:00
parent 0a02d1db34
commit 773b63d6f9

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)