From 647a51042d43cddabf51a51f62a8a250a284f399 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sat, 7 Jan 2023 16:13:46 +0000 Subject: Flip BN_clear_free() and BN_free() All of our BIGNUMs are cleared when we free them - move the code to BN_free() and have BN_clear_free() call BN_free(), rather than the other way around. ok tb@ --- src/lib/libcrypto/bn/bn_lib.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/bn/bn_lib.c b/src/lib/libcrypto/bn/bn_lib.c index e8397cafda..70b6899a42 100644 --- a/src/lib/libcrypto/bn/bn_lib.c +++ b/src/lib/libcrypto/bn/bn_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_lib.c,v 1.69 2023/01/07 16:09:18 jsing Exp $ */ +/* $OpenBSD: bn_lib.c,v 1.70 2023/01/07 16:13:46 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -97,7 +97,7 @@ BN_clear(BIGNUM *a) } void -BN_clear_free(BIGNUM *a) +BN_free(BIGNUM *a) { int i; @@ -112,9 +112,9 @@ BN_clear_free(BIGNUM *a) } void -BN_free(BIGNUM *a) +BN_clear_free(BIGNUM *bn) { - BN_clear_free(a); + BN_free(bn); } /* This stuff appears to be completely unused, so is deprecated */ -- cgit v1.2.3-55-g6feb