[openssl/openssl] 21f0b8: Fix memory leaks in ssl_old_test.c

Bernd Edlinger noreply at github.com
Wed Sep 13 12:33:32 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 21f0b80cd4b32ba80843b812b01a6056daf14093
      https://github.com/openssl/openssl/commit/21f0b80cd4b32ba80843b812b01a6056daf14093
  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)




More information about the openssl-commits mailing list