[openssl/openssl] 31595e: Fix a possible memory leak in dane_tlsa_add

Bernd Edlinger noreply at github.com
Wed Nov 22 08:25:07 UTC 2023


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: 31595e5c5782aa7d2454c34e3ca9b47d4ab5e532
      https://github.com/openssl/openssl/commit/31595e5c5782aa7d2454c34e3ca9b47d4ab5e532
  Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
  Date:   2023-11-22 (Wed, 22 Nov 2023)

  Changed paths:
    M ssl/ssl_lib.c

  Log Message:
  -----------
  Fix a possible memory leak in dane_tlsa_add

Several error cases leak either the X509 object
or the pkey or the danetls_record object.

Reviewed-by: Hugo Landau <hlandau at openssl.org>
Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre at ncp-e.com>
Reviewed-by: Richard Levitte <levitte at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22743)

(cherry picked from commit e4a94bcc77f3fda0f185e62a73a66d9b9b9388f5)




More information about the openssl-commits mailing list