aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Hogan <[email protected]>2019-01-08 00:27:46 -0800
committerDoug Hogan <[email protected]>2019-01-08 01:11:57 -0800
commitaeec8b23f3cbd238eb85c43eebbb1ce5cc1247d6 (patch)
tree3ddb73622ac1a5c8db310106e606c0d0efee3c5e
parent882a23aef3f2fe2dffbd0e69a780010f8deebb76 (diff)
downloadotp-aeec8b23f3cbd238eb85c43eebbb1ce5cc1247d6.tar.gz
otp-aeec8b23f3cbd238eb85c43eebbb1ce5cc1247d6.tar.bz2
otp-aeec8b23f3cbd238eb85c43eebbb1ce5cc1247d6.zip
Revamp engine_load_dynamic_nif()
-rw-r--r--lib/crypto/c_src/engine.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/crypto/c_src/engine.c b/lib/crypto/c_src/engine.c
index fb28808cb5..fd09d51a90 100644
--- a/lib/crypto/c_src/engine.c
+++ b/lib/crypto/c_src/engine.c
@@ -238,6 +238,9 @@ ERL_NIF_TERM engine_finish_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv
ERL_NIF_TERM engine_load_dynamic_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
{/* () */
#ifdef HAS_ENGINE_SUPPORT
+ if (argc != 0)
+ return enif_make_badarg(env);
+
ENGINE_load_dynamic();
return atom_ok;
#else