summaryrefslogtreecommitdiffstats
path: root/crypto/ec/ecp_nistp224.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2019-08-07 10:03:12 +0100
committerMatt Caswell <matt@openssl.org>2019-08-07 15:50:55 +0100
commita6482df03accc6cdcbd1298d593508825a5902e6 (patch)
tree0d585130ae20ee45c52c582f65475cc2d1d34b6e /crypto/ec/ecp_nistp224.c
parentc50fd0f959de5b256d8eefb8ad2a82fcdcb899c3 (diff)
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_nistp224.c')
-rw-r--r--crypto/ec/ecp_nistp224.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ec/ecp_nistp224.c b/crypto/ec/ecp_nistp224.c
index a9f40d09c7..2ad9903c90 100644
--- a/crypto/ec/ecp_nistp224.c
+++ b/crypto/ec/ecp_nistp224.c
@@ -1286,7 +1286,7 @@ int ec_GFp_nistp224_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;
@@ -1606,7 +1606,7 @@ int ec_GFp_nistp224_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;