openssl/ssl
Peter Kaestle 62ea5ffa7c tls1_set_groups_list: freeing *pext before overwriting
calling SSL_CTX_set1_groups_list() twice on one SSL_CTX* caused a memory
leak visible in valgrind:
  4 bytes in 1 blocks are definitely lost in loss record 1 of 1
     at 0x4841888: malloc (vg_replace_malloc.c:381)
     by 0x4B1EE96: CRYPTO_memdup (in libcrypto.so.3)
     by 0x48993A0: tls1_set_groups_list (in libssl.so.3)
     by 0x487AA7E: ssl3_ctx_ctrl (in libssl.so.3)
     by 0x1091EA: main (mem_leak.c:10)

  LEAK SUMMARY:
     definitely lost: 4 bytes in 1 blocks

Freeing *pext to fix it.

CLA: trivial

Signed-off-by: Peter Kaestle <peter.kaestle@nokia.com>

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20317)

(cherry picked from commit fcf3a9f7c6)
2023-03-24 13:40:12 +01:00
..
quic QUIC DEMUX: Ensure time field is always initialised 2023-03-22 10:14:25 +11:00
record Remove spurious error queue entries on early data 2023-03-06 08:35:17 +11:00
statem Added CERTIFICATE_VERIFY_MAX_LENGTH constant 2023-03-21 12:44:08 +01:00
bio_ssl.c
build.info
d1_lib.c Extend the new_record_layer function 2023-01-24 17:16:29 +00:00
d1_msg.c
d1_srtp.c
event_queue.c
methods.c
pqueue.c
priority_queue.c compute_pqueue_growth(): Fix the return type 2023-01-27 16:11:38 +01:00
s3_enc.c Extend the new_record_layer function 2023-01-24 17:16:29 +00:00
s3_lib.c first cut at sigalg loading 2023-02-24 11:02:48 +11:00
s3_msg.c
ssl_asn1.c
ssl_cert_comp.c
ssl_cert_table.h first cut at sigalg loading 2023-02-24 11:02:48 +11:00
ssl_cert.c Coverity 1521490: resource leak 2023-03-15 19:58:07 +11:00
ssl_ciph.c first cut at sigalg loading 2023-02-24 11:02:48 +11:00
ssl_conf.c SSL_conf_cmd: add support for IgnoreUnexpectedEOF 2023-01-30 09:37:00 +01:00
ssl_err_legacy.c
ssl_err.c Provide better errors for some QUIC failures 2023-03-20 09:35:38 +11:00
ssl_init.c
ssl_lib.c Fix SSL_has_pending() for QUIC connections 2023-03-20 09:35:38 +11:00
ssl_local.h first cut at sigalg loading 2023-02-24 11:02:48 +11:00
ssl_mcnf.c
ssl_rsa_legacy.c
ssl_rsa.c first cut at sigalg loading 2023-02-24 11:02:48 +11:00
ssl_sess.c fuzz: make post handshake reachable 2023-02-08 16:13:17 +01:00
ssl_stat.c
ssl_txt.c
ssl_utst.c
sslerr.h Provide better errors for some QUIC failures 2023-03-20 09:35:38 +11:00
t1_enc.c Extend the new_record_layer function 2023-01-24 17:16:29 +00:00
t1_lib.c tls1_set_groups_list: freeing *pext before overwriting 2023-03-24 13:40:12 +01:00
t1_trce.c
tls13_enc.c Add an initial QUIC-TLS implementation 2023-01-24 17:16:29 +00:00
tls_depr.c
tls_srp.c