Free pre_proc_exts in SSL_free()
authorMiłosz Kaniewski <milosz.kaniewski@gmail.com>
Tue, 30 Jun 2020 19:46:38 +0000 (21:46 +0200)
committerBenjamin Kaduk <kaduk@mit.edu>
Thu, 2 Jul 2020 00:25:48 +0000 (17:25 -0700)
commit94941cada25433a7dca35b5b9f8cbb751ab65ab3
tree4ba6be808985e1a643570f93546ea672fb299c71
parent69f982679ec0c8887a4324d8518a33808fee1cd7
Free pre_proc_exts in SSL_free()

Usually it will be freed in tls_early_post_process_client_hello().
However if a ClientHello callback will be used and will return
SSL_CLIENT_HELLO_RETRY then tls_early_post_process_client_hello()
may never come to the point where pre_proc_exts is freed.

Fixes #12194

CLA: trivial

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/12330)
ssl/ssl_lib.c