[openssl/openssl] ba3c33: Fix memory leaks in ssl_old_test.c
Bernd Edlinger
noreply at github.com
Wed Sep 13 12:33:30 UTC 2023
Branch: refs/heads/openssl-3.1
Home: https://github.com/openssl/openssl
Commit: ba3c334eca591cb46bf9eb8821363f49c846117d
https://github.com/openssl/openssl/commit/ba3c334eca591cb46bf9eb8821363f49c846117d
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date: 2023-09-13 (Wed, 13 Sep 2023)
Changed paths:
M test/ssl_old_test.c
Log Message:
-----------
Fix memory leaks in ssl_old_test.c
This fixes a few memory leaks reported in #22049.
If SSL_CTX_set0_tmp_dh_pkey rejects the temp dh key
due to security restrictions (even when @SECLEVEL=0 is used!)
then the caller has to delete the PKEY object.
That is different to how the deprecated
SSL_CTX_set_tmp_dh_pkey was designed to work.
Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22060)
(cherry picked from commit 21f0b80cd4b32ba80843b812b01a6056daf14093)
More information about the openssl-commits
mailing list