diff options
author | Ingela Anderton Andin <ingela@erlang.org> | 2013-05-06 15:49:15 +0200 |
---|---|---|
committer | Ingela Anderton Andin <ingela@erlang.org> | 2013-05-08 10:39:20 +0200 |
commit | e05c31eaa6b4f09ac220bf88d78376d7ef8722d7 (patch) | |
tree | c9e6f111e133fa9ca383da8188abf2d19168c0f6 /lib | |
parent | c47e4babacedbac46d441228b514b2e650392cf7 (diff) | |
download | otp-e05c31eaa6b4f09ac220bf88d78376d7ef8722d7.tar.gz otp-e05c31eaa6b4f09ac220bf88d78376d7ef8722d7.tar.bz2 otp-e05c31eaa6b4f09ac220bf88d78376d7ef8722d7.zip |
crypto: Fix ec_key resource to be upgradeable
Diffstat (limited to 'lib')
-rw-r--r-- | lib/crypto/c_src/crypto.c | 3 |
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); |