summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bn')
-rw-r--r--src/lib/libcrypto/bn/bn_blind.c10
-rw-r--r--src/lib/libcrypto/bn/bn_sqrt.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libcrypto/bn/bn_blind.c b/src/lib/libcrypto/bn/bn_blind.c
index fbcdf1c6e7..61d0cf7a95 100644
--- a/src/lib/libcrypto/bn/bn_blind.c
+++ b/src/lib/libcrypto/bn/bn_blind.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_blind.c,v 1.19 2022/11/26 16:08:51 tb Exp $ */ 1/* $OpenBSD: bn_blind.c,v 1.20 2023/03/07 09:27:10 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -180,10 +180,10 @@ BN_BLINDING_free(BN_BLINDING *r)
180 if (r == NULL) 180 if (r == NULL)
181 return; 181 return;
182 182
183 BN_clear_free(r->A); 183 BN_free(r->A);
184 BN_clear_free(r->Ai); 184 BN_free(r->Ai);
185 BN_clear_free(r->e); 185 BN_free(r->e);
186 BN_clear_free(r->mod); 186 BN_free(r->mod);
187 free(r); 187 free(r);
188} 188}
189 189
diff --git a/src/lib/libcrypto/bn/bn_sqrt.c b/src/lib/libcrypto/bn/bn_sqrt.c
index 652dc2b5fc..9bbca4267a 100644
--- a/src/lib/libcrypto/bn/bn_sqrt.c
+++ b/src/lib/libcrypto/bn/bn_sqrt.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_sqrt.c,v 1.14 2022/11/26 16:08:51 tb Exp $ */ 1/* $OpenBSD: bn_sqrt.c,v 1.15 2023/03/07 09:27:10 jsing Exp $ */
2/* Written by Lenka Fibikova <fibikova@exp-math.uni-essen.de> 2/* Written by Lenka Fibikova <fibikova@exp-math.uni-essen.de>
3 * and Bodo Moeller for the OpenSSL project. */ 3 * and Bodo Moeller for the OpenSSL project. */
4/* ==================================================================== 4/* ====================================================================
@@ -400,7 +400,7 @@ vrfy:
400end: 400end:
401 if (err) { 401 if (err) {
402 if (ret != NULL && ret != in) { 402 if (ret != NULL && ret != in) {
403 BN_clear_free(ret); 403 BN_free(ret);
404 } 404 }
405 ret = NULL; 405 ret = NULL;
406 } 406 }