diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_mont.c')
-rw-r--r-- | src/lib/libcrypto/ec/ecp_mont.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/ec/ecp_mont.c b/src/lib/libcrypto/ec/ecp_mont.c index 8b4c529222..302f833306 100644 --- a/src/lib/libcrypto/ec/ecp_mont.c +++ b/src/lib/libcrypto/ec/ecp_mont.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ecp_mont.c,v 1.12 2018/07/10 21:55:49 tb Exp $ */ | 1 | /* $OpenBSD: ecp_mont.c,v 1.13 2018/07/10 22:06:14 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Originally written by Bodo Moeller for the OpenSSL project. | 3 | * Originally written by Bodo Moeller for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -175,7 +175,7 @@ ec_GFp_mont_group_copy(EC_GROUP * dest, const EC_GROUP * src) | |||
175 | } | 175 | } |
176 | return 1; | 176 | return 1; |
177 | 177 | ||
178 | err: | 178 | err: |
179 | if (dest->field_data1 != NULL) { | 179 | if (dest->field_data1 != NULL) { |
180 | BN_MONT_CTX_free(dest->field_data1); | 180 | BN_MONT_CTX_free(dest->field_data1); |
181 | dest->field_data1 = NULL; | 181 | dest->field_data1 = NULL; |
@@ -228,7 +228,7 @@ ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a, | |||
228 | BN_free(group->field_data2); | 228 | BN_free(group->field_data2); |
229 | group->field_data2 = NULL; | 229 | group->field_data2 = NULL; |
230 | } | 230 | } |
231 | err: | 231 | err: |
232 | BN_CTX_free(new_ctx); | 232 | BN_CTX_free(new_ctx); |
233 | BN_MONT_CTX_free(mont); | 233 | BN_MONT_CTX_free(mont); |
234 | BN_free(one); | 234 | BN_free(one); |