(RSA_free): Call the meth->finish before releasing the engine.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18408 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-10-11 21:26:23 +00:00
parent a6e9cb9d8e
commit 84e59ac8a9

View File

@@ -98,11 +98,11 @@ RSA_free(RSA *rsa)
if (--rsa->references > 0)
return;
(*rsa->meth->finish)(rsa);
if (rsa->engine)
ENGINE_finish(rsa->engine);
(*rsa->meth->finish)(rsa);
#define free_if(f) if (f) { BN_free(f); }
free_if(rsa->n);
free_if(rsa->e);