aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2019-03-15 17:46:30 +0100
committerHans Nilsson <[email protected]>2019-03-15 17:53:27 +0100
commit055ca0a2344cfebf71a719424cc30484f839d2b3 (patch)
tree572512a196f62cc45cc229b1d0dab01c65d09568 /lib/crypto/c_src
parent80f103c64904b29e2f3d880148dd5b032cae0c02 (diff)
downloadotp-055ca0a2344cfebf71a719424cc30484f839d2b3.tar.gz
otp-055ca0a2344cfebf71a719424cc30484f839d2b3.tar.bz2
otp-055ca0a2344cfebf71a719424cc30484f839d2b3.zip
crypto: Fix bug in error return for crypto:poly1305/2
Returned the atom notsup instead of the exception notsup.
Diffstat (limited to 'lib/crypto/c_src')
-rw-r--r--lib/crypto/c_src/poly1305.c2
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
}