diff options
author | jsing <> | 2023-03-07 09:27:10 +0000 |
---|---|---|
committer | jsing <> | 2023-03-07 09:27:10 +0000 |
commit | c83e0ddc66b0c990eac3283a437e4e70eabd868d (patch) | |
tree | d6ca9b239f49033751a7fb0f0185d1ad060801cf /src/lib/libcrypto/bn/bn_blind.c | |
parent | e3934d6456ddf771c623fd07240dfb4c4d7a062c (diff) | |
download | openbsd-c83e0ddc66b0c990eac3283a437e4e70eabd868d.tar.gz openbsd-c83e0ddc66b0c990eac3283a437e4e70eabd868d.tar.bz2 openbsd-c83e0ddc66b0c990eac3283a437e4e70eabd868d.zip |
Call BN_free() instead of BN_clear_free().
BN_clear_free() is a wrapper that calls BN_free() - call BN_free() directly
instead.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/bn/bn_blind.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_blind.c | 10 |
1 files changed, 5 insertions, 5 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 | ||