diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-07-16 08:25:42 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-07-16 08:25:42 +0000 |
commit | ca76dd51f63a18631a99b173772ffb526fcf999a (patch) | |
tree | ae2a25134cbef9d308477dbbb2f6979b39e1b892 /regress | |
parent | f1ef4ff6f2651b4d2d5173dce92e91a1e44cf173 (diff) |
ecc_cdh: plug leak of peer public key
Diffstat (limited to 'regress')
-rw-r--r-- | regress/lib/libcrypto/ecdh/ecc_cdh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/lib/libcrypto/ecdh/ecc_cdh.c b/regress/lib/libcrypto/ecdh/ecc_cdh.c index 01f8654c9a9..0333cf1e877 100644 --- a/regress/lib/libcrypto/ecdh/ecc_cdh.c +++ b/regress/lib/libcrypto/ecdh/ecc_cdh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ecc_cdh.c,v 1.1 2023/07/15 19:51:13 tb Exp $ */ +/* $OpenBSD: ecc_cdh.c,v 1.2 2023/07/16 08:25:41 tb Exp $ */ /* * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> @@ -2484,6 +2484,7 @@ run_ecc_cdh_test(const struct ecc_cdh_test *test) count++; EC_KEY_free(key); + EC_POINT_free(peer_pub); BN_CTX_end(ctx); BN_CTX_free(ctx); freezero(out, out_len); |