summaryrefslogtreecommitdiffstats
path: root/crypto/evp/p_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-11-12 19:25:37 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-11-12 19:25:37 +0000
commit773b63d6f9e20cbd90ead64d276068527eea4b24 (patch)
tree06e06ec552be429378fbfc9fd42377c3646fea22 /crypto/evp/p_lib.c
parent0a02d1db345fd37e4be3f708dcafd97e18774316 (diff)
set engine to NULL after releasing it
Diffstat (limited to 'crypto/evp/p_lib.c')
-rw-r--r--crypto/evp/p_lib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c
index 249ac2bd2a..1916c61699 100644
--- a/crypto/evp/p_lib.c
+++ b/crypto/evp/p_lib.c
@@ -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)