aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src/rsa.c
diff options
context:
space:
mode:
authorDoug Hogan <[email protected]>2019-01-15 08:04:32 -0800
committerDoug Hogan <[email protected]>2019-01-15 08:38:09 -0800
commit7cb2e25a026e6d9ff2cdb078504163de5f71c29a (patch)
tree5e754c51987515e2688d6fb1f7a70512207fe27e /lib/crypto/c_src/rsa.c
parentb36527d7bee7c264bfac9b36fd6dc58b2f15a7f0 (diff)
downloadotp-7cb2e25a026e6d9ff2cdb078504163de5f71c29a.tar.gz
otp-7cb2e25a026e6d9ff2cdb078504163de5f71c29a.tar.bz2
otp-7cb2e25a026e6d9ff2cdb078504163de5f71c29a.zip
Convert argc checks to ASSERTs per PR
Diffstat (limited to 'lib/crypto/c_src/rsa.c')
-rw-r--r--lib/crypto/c_src/rsa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/crypto/c_src/rsa.c b/lib/crypto/c_src/rsa.c
index 540bc1b54d..e9f29aa496 100644
--- a/lib/crypto/c_src/rsa.c
+++ b/lib/crypto/c_src/rsa.c
@@ -214,8 +214,8 @@ static ERL_NIF_TERM rsa_generate_key(ErlNifEnv* env, int argc, const ERL_NIF_TER
BN_GENCB intr_cb_buf;
#endif
- if (argc != 2)
- goto bad_arg;
+ ASSERT(argc == 2);
+
if (!enif_get_int(env, argv[0], &modulus_bits))
goto bad_arg;
if (modulus_bits < 256)