artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66cbf9a
)
Use BN_free() instead of BN_clear_free()
author
tb
<tb@openbsd.org>
Wed, 8 Mar 2023 16:51:42 +0000
(16:51 +0000)
committer
tb
<tb@openbsd.org>
Wed, 8 Mar 2023 16:51:42 +0000
(16:51 +0000)
regress/lib/libcrypto/ecdh/ecdhtest.c
patch
|
blob
|
history
diff --git
a/regress/lib/libcrypto/ecdh/ecdhtest.c
b/regress/lib/libcrypto/ecdh/ecdhtest.c
index
b3470ce
..
bf68a88
100644
(file)
--- a/
regress/lib/libcrypto/ecdh/ecdhtest.c
+++ b/
regress/lib/libcrypto/ecdh/ecdhtest.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: ecdhtest.c,v 1.1
2 2021/12/29 22:58:40
tb Exp $ */
+/* $OpenBSD: ecdhtest.c,v 1.1
3 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);