From 46c2b0816a460c88166122d69c3984876b0baed9 Mon Sep 17 00:00:00 2001 From: tb Date: Wed, 8 Mar 2023 16:51:42 +0000 Subject: [PATCH] Use BN_free() instead of BN_clear_free() --- regress/lib/libcrypto/ecdh/ecdhtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/lib/libcrypto/ecdh/ecdhtest.c b/regress/lib/libcrypto/ecdh/ecdhtest.c index b3470cec5bc..bf68a88e4ed 100644 --- a/regress/lib/libcrypto/ecdh/ecdhtest.c +++ b/regress/lib/libcrypto/ecdh/ecdhtest.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ecdhtest.c,v 1.12 2021/12/29 22:58:40 tb Exp $ */ +/* $OpenBSD: ecdhtest.c,v 1.13 2023/03/08 16:51:42 tb Exp $ */ /* ==================================================================== * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. * @@ -312,7 +312,7 @@ mk_eckey(int nid, const unsigned char *p, size_t plen) goto err; ok = 1; err: - BN_clear_free(priv); + BN_free(priv); EC_POINT_free(pub); if (!ok) { EC_KEY_free(k); -- 2.20.1