From: tb Date: Sun, 16 Jul 2023 08:25:41 +0000 (+0000) Subject: ecc_cdh: plug leak of peer public key X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c54553a296af5e80a9408428740f538528758724;p=openbsd ecc_cdh: plug leak of peer public key --- 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 @@ -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);