summaryrefslogtreecommitdiffstats
path: root/crypto/ec/ecp_nistp256.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-08-07 11:03:12 +0200
committerMatt Caswell <matt@openssl.org>2019-08-07 16:50:55 +0200
commita6482df03accc6cdcbd1298d593508825a5902e6 (patch)
tree0d585130ae20ee45c52c582f65475cc2d1d34b6e /crypto/ec/ecp_nistp256.c
parentFix BN error reporting (diff)
downloadopenssl-a6482df03accc6cdcbd1298d593508825a5902e6.tar.xz
openssl-a6482df03accc6cdcbd1298d593508825a5902e6.zip
Fix enable-ec_nistp_64_gcc_128
When creating a BN_CTX, make sure we store it in the right variable! Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/9546)
Diffstat (limited to 'crypto/ec/ecp_nistp256.c')
-rw-r--r--crypto/ec/ecp_nistp256.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ec/ecp_nistp256.c b/crypto/ec/ecp_nistp256.c
index 4fc589b913..624ee1621f 100644
--- a/crypto/ec/ecp_nistp256.c
+++ b/crypto/ec/ecp_nistp256.c
@@ -1906,7 +1906,7 @@ int ec_GFp_nistp256_group_set_curve(EC_GROUP *group, const BIGNUM *p,
BN_CTX *new_ctx = NULL;
if (ctx == NULL)
- new_ctx = BN_CTX_new();
+ ctx = new_ctx = BN_CTX_new();
#endif
if (ctx == NULL)
return 0;
@@ -2234,7 +2234,7 @@ int ec_GFp_nistp256_precompute_mult(EC_GROUP *group, BN_CTX *ctx)
#ifndef FIPS_MODE
if (ctx == NULL)
- new_ctx = BN_CTX_new();
+ ctx = new_ctx = BN_CTX_new();
#endif
if (ctx == NULL)
return 0;