summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ecp_nist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_nist.c')
-rw-r--r--src/lib/libcrypto/ec/ecp_nist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/ec/ecp_nist.c b/src/lib/libcrypto/ec/ecp_nist.c
index 24cba64d2e..8aa9f49592 100644
--- a/src/lib/libcrypto/ec/ecp_nist.c
+++ b/src/lib/libcrypto/ec/ecp_nist.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecp_nist.c,v 1.10 2017/01/29 17:49:23 beck Exp $ */ 1/* $OpenBSD: ecp_nist.c,v 1.11 2018/07/10 22:06:14 tb Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project. 3 * Written by Nils Larsch for the OpenSSL project.
4 */ 4 */
@@ -151,7 +151,7 @@ ec_GFp_nist_group_set_curve(EC_GROUP *group, const BIGNUM *p,
151 151
152 ret = ec_GFp_simple_group_set_curve(group, p, a, b, ctx); 152 ret = ec_GFp_simple_group_set_curve(group, p, a, b, ctx);
153 153
154err: 154 err:
155 BN_CTX_end(ctx); 155 BN_CTX_end(ctx);
156 BN_CTX_free(new_ctx); 156 BN_CTX_free(new_ctx);
157 return ret; 157 return ret;
@@ -179,7 +179,7 @@ ec_GFp_nist_field_mul(const EC_GROUP *group, BIGNUM *r, const BIGNUM *a,
179 goto err; 179 goto err;
180 180
181 ret = 1; 181 ret = 1;
182err: 182 err:
183 BN_CTX_free(ctx_new); 183 BN_CTX_free(ctx_new);
184 return ret; 184 return ret;
185} 185}
@@ -206,7 +206,7 @@ ec_GFp_nist_field_sqr(const EC_GROUP * group, BIGNUM * r, const BIGNUM * a,
206 goto err; 206 goto err;
207 207
208 ret = 1; 208 ret = 1;
209err: 209 err:
210 BN_CTX_free(ctx_new); 210 BN_CTX_free(ctx_new);
211 return ret; 211 return ret;
212} 212}