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

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


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




More information about the openssl-commits mailing list