aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src/engine.c
diff options
context:
space:
mode:
authorDoug Hogan <[email protected]>2019-01-03 21:44:31 -0800
committerDoug Hogan <[email protected]>2019-01-08 01:11:57 -0800
commitb497b9d64bcf2c77f0fc82af57877b3465552c82 (patch)
tree24c412a8d8e823d6a6948701fbfc3af7791056dd /lib/crypto/c_src/engine.c
parent998a8a4ad5939290e17c3963cdd7707c2a40e8b7 (diff)
downloadotp-b497b9d64bcf2c77f0fc82af57877b3465552c82.tar.gz
otp-b497b9d64bcf2c77f0fc82af57877b3465552c82.tar.bz2
otp-b497b9d64bcf2c77f0fc82af57877b3465552c82.zip
Revamp engine_get_all_methods_nif()
Diffstat (limited to 'lib/crypto/c_src/engine.c')
-rw-r--r--lib/crypto/c_src/engine.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/crypto/c_src/engine.c b/lib/crypto/c_src/engine.c
index 6b3a696c31..4d75f6430b 100644
--- a/lib/crypto/c_src/engine.c
+++ b/lib/crypto/c_src/engine.c
@@ -789,7 +789,10 @@ ERL_NIF_TERM engine_get_all_methods_nif(ErlNifEnv* env, int argc, const ERL_NIF_
{/* () */
#ifdef HAS_ENGINE_SUPPORT
ERL_NIF_TERM method_array[12];
- int i = 0;
+ unsigned int i = 0;
+
+ if (argc != 0)
+ return enif_make_badarg(env);
#ifdef ENGINE_METHOD_RSA
method_array[i++] = atom_engine_method_rsa;