aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src
diff options
context:
space:
mode:
authorDoug Hogan <[email protected]>2019-01-15 05:32:52 -0800
committerDoug Hogan <[email protected]>2019-01-15 05:32:52 -0800
commit0256606e5e366e2fbf92a5893b7c888210b95e40 (patch)
tree6678c0b9da81b948323b796bb4d17c67ea6d8e40 /lib/crypto/c_src
parent7c80625748a1d95a20754c0927e13c00423c1277 (diff)
downloadotp-0256606e5e366e2fbf92a5893b7c888210b95e40.tar.gz
otp-0256606e5e366e2fbf92a5893b7c888210b95e40.tar.bz2
otp-0256606e5e366e2fbf92a5893b7c888210b95e40.zip
Fix documentation and argc check for engine_ctrl_cmd_strings_nif
Diffstat (limited to 'lib/crypto/c_src')
-rw-r--r--lib/crypto/c_src/engine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/crypto/c_src/engine.c b/lib/crypto/c_src/engine.c
index ae23747cbf..715d9bed40 100644
--- a/lib/crypto/c_src/engine.c
+++ b/lib/crypto/c_src/engine.c
@@ -252,7 +252,7 @@ ERL_NIF_TERM engine_load_dynamic_nif(ErlNifEnv* env, int argc, const ERL_NIF_TER
}
ERL_NIF_TERM engine_ctrl_cmd_strings_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
-{/* (Engine, Commands) */
+{/* (Engine, Commands, Optional) */
#ifdef HAS_ENGINE_SUPPORT
ERL_NIF_TERM ret;
unsigned int cmds_len = 0;
@@ -263,7 +263,7 @@ ERL_NIF_TERM engine_ctrl_cmd_strings_nif(ErlNifEnv* env, int argc, const ERL_NIF
int cmds_loaded = 0;
// Get Engine
- if (argc != 2)
+ if (argc != 3)
goto bad_arg;
if (!enif_get_resource(env, argv[0], engine_ctx_rtype, (void**)&ctx))
goto bad_arg;