aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2013-05-06 15:49:15 +0200
committerIngela Anderton Andin <[email protected]>2013-05-08 10:39:20 +0200
commite05c31eaa6b4f09ac220bf88d78376d7ef8722d7 (patch)
treec9e6f111e133fa9ca383da8188abf2d19168c0f6
parentc47e4babacedbac46d441228b514b2e650392cf7 (diff)
downloadotp-e05c31eaa6b4f09ac220bf88d78376d7ef8722d7.tar.gz
otp-e05c31eaa6b4f09ac220bf88d78376d7ef8722d7.tar.bz2
otp-e05c31eaa6b4f09ac220bf88d78376d7ef8722d7.zip
crypto: Fix ec_key resource to be upgradeable
-rw-r--r--lib/crypto/c_src/crypto.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/crypto/c_src/crypto.c b/lib/crypto/c_src/crypto.c
index 99e5cb1c1f..08c6d4dbc5 100644
--- a/lib/crypto/c_src/crypto.c
+++ b/lib/crypto/c_src/crypto.c
@@ -621,7 +621,8 @@ static int init(ErlNifEnv* env, ERL_NIF_TERM load_info)
res_type_ec_key = enif_open_resource_type(env,NULL,"crypto.EC_KEY",
ec_key_dtor,
- ERL_NIF_RT_CREATE, NULL);
+ ERL_NIF_RT_CREATE|ERL_NIF_RT_TAKEOVER,
+ NULL);
#endif
init_digest_types(env);