summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec/ecp_mont.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ec/ecp_mont.c')
-rw-r--r--src/lib/libcrypto/ec/ecp_mont.c6
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 03e594d38d..40c512a357 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.14 2018/07/15 05:38:48 jsg Exp $ */ 1/* $OpenBSD: ecp_mont.c,v 1.15 2018/07/15 16:27:39 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 */
@@ -172,7 +172,7 @@ ec_GFp_mont_group_copy(EC_GROUP * dest, const EC_GROUP * src)
172 } 172 }
173 return 1; 173 return 1;
174 174
175err: 175 err:
176 if (dest->field_data1 != NULL) { 176 if (dest->field_data1 != NULL) {
177 BN_MONT_CTX_free(dest->field_data1); 177 BN_MONT_CTX_free(dest->field_data1);
178 dest->field_data1 = NULL; 178 dest->field_data1 = NULL;
@@ -225,7 +225,7 @@ ec_GFp_mont_group_set_curve(EC_GROUP *group, const BIGNUM *p, const BIGNUM *a,
225 BN_free(group->field_data2); 225 BN_free(group->field_data2);
226 group->field_data2 = NULL; 226 group->field_data2 = NULL;
227 } 227 }
228err: 228 err:
229 BN_CTX_free(new_ctx); 229 BN_CTX_free(new_ctx);
230 BN_MONT_CTX_free(mont); 230 BN_MONT_CTX_free(mont);
231 BN_free(one); 231 BN_free(one);