diff options
author | Hans Nilsson <[email protected]> | 2019-03-18 11:39:26 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2019-03-18 11:39:26 +0100 |
commit | 2d661f8272addcec37b0a8205d614cb398df530b (patch) | |
tree | 8ac1ab58306f29911d7fafb757bc43e48534a2f2 | |
parent | 6f97929787126b9c602c769a97a5598e0c35bef4 (diff) | |
parent | 055ca0a2344cfebf71a719424cc30484f839d2b3 (diff) | |
download | otp-2d661f8272addcec37b0a8205d614cb398df530b.tar.gz otp-2d661f8272addcec37b0a8205d614cb398df530b.tar.bz2 otp-2d661f8272addcec37b0a8205d614cb398df530b.zip |
Merge branch 'hans/crypto/fix_ret_bug_poly1305/OTP-15677'
* hans/crypto/fix_ret_bug_poly1305/OTP-15677:
crypto: Fix bug in error return for crypto:poly1305/2
-rw-r--r-- | lib/crypto/c_src/poly1305.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/c_src/poly1305.c b/lib/crypto/c_src/poly1305.c index db3433dce3..76579c0a29 100644 --- a/lib/crypto/c_src/poly1305.c +++ b/lib/crypto/c_src/poly1305.c @@ -85,6 +85,6 @@ ERL_NIF_TERM poly1305_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) return ret; #else - return atom_notsup; + return enif_raise_exception(env, atom_notsup); #endif } |