From: tb Date: Wed, 8 Mar 2023 16:51:42 +0000 (+0000) Subject: Use BN_free() instead of BN_clear_free() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=46c2b0816a460c88166122d69c3984876b0baed9;p=openbsd Use BN_free() instead of BN_clear_free() --- 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);