(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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user