summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2023-03-08 16:51:42 +0000
committertb <>2023-03-08 16:51:42 +0000
commit227b7548315b1864ee998d7f2b898332377d5cfc (patch)
tree62b49d610dde5c737013aa10941d47b16a855310
parenta9053eeb0dddcd10f68251cfdba532d795c2f56c (diff)
downloadopenbsd-227b7548315b1864ee998d7f2b898332377d5cfc.tar.gz
openbsd-227b7548315b1864ee998d7f2b898332377d5cfc.tar.bz2
openbsd-227b7548315b1864ee998d7f2b898332377d5cfc.zip
Use BN_free() instead of BN_clear_free()
-rw-r--r--src/regress/lib/libcrypto/ecdh/ecdhtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/ecdh/ecdhtest.c b/src/regress/lib/libcrypto/ecdh/ecdhtest.c
index b3470cec5b..bf68a88e4e 100644
--- a/src/regress/lib/libcrypto/ecdh/ecdhtest.c
+++ b/src/regress/lib/libcrypto/ecdh/ecdhtest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecdhtest.c,v 1.12 2021/12/29 22:58:40 tb Exp $ */ 1/* $OpenBSD: ecdhtest.c,v 1.13 2023/03/08 16:51:42 tb Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. 3 * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
4 * 4 *
@@ -312,7 +312,7 @@ mk_eckey(int nid, const unsigned char *p, size_t plen)
312 goto err; 312 goto err;
313 ok = 1; 313 ok = 1;
314err: 314err:
315 BN_clear_free(priv); 315 BN_free(priv);
316 EC_POINT_free(pub); 316 EC_POINT_free(pub);
317 if (!ok) { 317 if (!ok) {
318 EC_KEY_free(k); 318 EC_KEY_free(k);