aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDuncaen <[email protected]>2016-08-03 16:56:29 +0200
committerDuncaen <[email protected]>2016-08-03 16:56:29 +0200
commit4763141dcb61464fdc3ac11273d0a21874670bb5 (patch)
tree4ecea9b26512382be74d9f37cf37829e49d57a41
parent0bc1bed3f6e487ebfbf8b6c45e7218fe816e7b8f (diff)
downloadotp-4763141dcb61464fdc3ac11273d0a21874670bb5.tar.gz
otp-4763141dcb61464fdc3ac11273d0a21874670bb5.tar.bz2
otp-4763141dcb61464fdc3ac11273d0a21874670bb5.zip
Fix segfault in crypto by increasing algo_cipher array
-rw-r--r--lib/crypto/c_src/crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/c_src/crypto.c b/lib/crypto/c_src/crypto.c
index 7183c395ae..d0044fe723 100644
--- a/lib/crypto/c_src/crypto.c
+++ b/lib/crypto/c_src/crypto.c
@@ -749,7 +749,7 @@ static ERL_NIF_TERM algo_hash[8]; /* increase when extending the list */
static int algo_pubkey_cnt;
static ERL_NIF_TERM algo_pubkey[7]; /* increase when extending the list */
static int algo_cipher_cnt;
-static ERL_NIF_TERM algo_cipher[20]; /* increase when extending the list */
+static ERL_NIF_TERM algo_cipher[21]; /* increase when extending the list */
static void init_algorithms_types(ErlNifEnv* env)
{