aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-02-08 18:48:42 +0100
committerSverker Eriksson <[email protected]>2016-02-08 18:48:42 +0100
commit8edd580904f284123a56547efc5b43d5d35664e3 (patch)
treed448c238c75e4b8395a3ef3c8113566b829d4083 /lib/crypto/c_src
parent6392637b184ac3172c61025889f3087e5739bb72 (diff)
parent3c56cb7a4c3bcb8a089c0b83375aad46c010a9b7 (diff)
downloadotp-8edd580904f284123a56547efc5b43d5d35664e3.tar.gz
otp-8edd580904f284123a56547efc5b43d5d35664e3.tar.bz2
otp-8edd580904f284123a56547efc5b43d5d35664e3.zip
Merge branch 'maint'
Diffstat (limited to 'lib/crypto/c_src')
-rw-r--r--lib/crypto/c_src/crypto.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/crypto/c_src/crypto.c b/lib/crypto/c_src/crypto.c
index c0ab7ba7cd..d1f620d892 100644
--- a/lib/crypto/c_src/crypto.c
+++ b/lib/crypto/c_src/crypto.c
@@ -3006,6 +3006,9 @@ static EC_KEY* ec_key_new(ErlNifEnv* env, ERL_NIF_TERM curve_arg)
} else
goto out_err;
+ if (!group)
+ goto out_err;
+
if (enif_inspect_binary(env, prime[2], &seed)) {
EC_GROUP_set_seed(group, seed.data, seed.size);
}