[openssl/openssl] c10ded: Fix possible memory leak on error

Todd Short noreply at github.com
Mon Feb 20 14:43:26 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: c10ded8c2c862992c98b83909a679aa0bb448a55
      https://github.com/openssl/openssl/commit/c10ded8c2c862992c98b83909a679aa0bb448a55
  Author: Todd Short <todd.short at me.com>
  Date:   2023-02-20 (Mon, 20 Feb 2023)

  Changed paths:
    M ssl/ssl_lib.c

  Log Message:
  -----------
  Fix possible memory leak on error

The two places that call `ossl_ssl_init()` assume that no additional
memory has been allocated when this fails; they subsequently free
the QUIC_CONNECTION/SSL_CONNECTION via OPENSSL_free() without freeing
any other resources.

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Matt Caswell <matt at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20316)




More information about the openssl-commits mailing list