aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2013-12-02 15:50:26 +0100
committerHenrik Nord <[email protected]>2013-12-02 15:50:28 +0100
commit25b992335e82919d6166b860c9b97710c5f33ae1 (patch)
tree59a9f3a46f7ab0756936f41aee1b26831b00289a
parent87054d91f9cb191274a56ac80a8ab29c4cb3a0ef (diff)
parent5fec8527e925f4a6da02d560a9afbbf39912747c (diff)
downloadotp-25b992335e82919d6166b860c9b97710c5f33ae1.tar.gz
otp-25b992335e82919d6166b860c9b97710c5f33ae1.tar.bz2
otp-25b992335e82919d6166b860c9b97710c5f33ae1.zip
Merge branch 'nox/crypto-uninitialized-vars' into maint
* nox/crypto-uninitialized-vars: Fix some uninitialized pointers in crypto OTP-11510
-rw-r--r--lib/crypto/c_src/crypto.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/crypto/c_src/crypto.c b/lib/crypto/c_src/crypto.c
index c28ff8136c..42fb172953 100644
--- a/lib/crypto/c_src/crypto.c
+++ b/lib/crypto/c_src/crypto.c
@@ -2658,8 +2658,9 @@ static ERL_NIF_TERM srp_user_secret_nif(ErlNifEnv* env, int argc, const ERL_NIF_
<premaster secret> = (B - (k * g^x)) ^ (a + (u * x)) % N
*/
BIGNUM *bn_exponent = NULL, *bn_a = NULL;
- BIGNUM *bn_u, *bn_multiplier, *bn_exp2, *bn_base,
- *bn_prime, *bn_generator, *bn_B, *bn_result;
+ BIGNUM *bn_u = NULL, *bn_multiplier = NULL, *bn_exp2,
+ *bn_base, *bn_prime = NULL, *bn_generator = NULL,
+ *bn_B = NULL, *bn_result;
BN_CTX *bn_ctx;
unsigned char* ptr;
unsigned dlen;