diff options
author | Matt Caswell <matt@openssl.org> | 2019-08-07 10:03:12 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2019-08-07 15:50:55 +0100 |
commit | a6482df03accc6cdcbd1298d593508825a5902e6 (patch) | |
tree | 0d585130ae20ee45c52c582f65475cc2d1d34b6e /crypto/ec/ecp_nistp521.c | |
parent | c50fd0f959de5b256d8eefb8ad2a82fcdcb899c3 (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_nistp521.c')
-rw-r--r-- | crypto/ec/ecp_nistp521.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/ec/ecp_nistp521.c b/crypto/ec/ecp_nistp521.c index ff5c2cfa64..6de37f663b 100644 --- a/crypto/ec/ecp_nistp521.c +++ b/crypto/ec/ecp_nistp521.c @@ -1748,7 +1748,7 @@ int ec_GFp_nistp521_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; @@ -2072,7 +2072,7 @@ int ec_GFp_nistp521_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; |