From 253430a926f3665ae14275b3ac3ce3d2f3fd8ed4 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 16 Jul 2023 08:25:41 +0000 Subject: ecc_cdh: plug leak of peer public key --- src/regress/lib/libcrypto/ecdh/ecc_cdh.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/regress/lib/libcrypto/ecdh/ecc_cdh.c b/src/regress/lib/libcrypto/ecdh/ecc_cdh.c index 01f8654c9a..0333cf1e87 100644 --- a/src/regress/lib/libcrypto/ecdh/ecc_cdh.c +++ b/src/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 @@ -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); -- cgit v1.2.3-55-g6feb