[openssl/openssl] a9c4bb: Fix a possible memleak in opt_verify

Bernd Edlinger noreply at github.com
Tue Dec 12 18:52:10 UTC 2023


  Branch: refs/heads/openssl-3.1
  Home:   https://github.com/openssl/openssl
  Commit: a9c4bb0282185e900c45587ced4cecf38751e3eb
      https://github.com/openssl/openssl/commit/a9c4bb0282185e900c45587ced4cecf38751e3eb
  Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
  Date:   2023-12-12 (Tue, 12 Dec 2023)

  Changed paths:
    M apps/lib/opt.c

  Log Message:
  -----------
  Fix a possible memleak in opt_verify

The ASN1_OBJECT otmp was leaked if X509_VERIFY_PARAM_add0_policy fails.

Reviewed-by: Shane Lontis <shane.lontis at oracle.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22922)

(cherry picked from commit d6688e45fa2f987f3ffd324e19922468beee5ddc)




More information about the openssl-commits mailing list