Plug leak in the ssltest
authortb <tb@openbsd.org>
Tue, 4 Jul 2023 08:47:01 +0000 (08:47 +0000)
committertb <tb@openbsd.org>
Tue, 4 Jul 2023 08:47:01 +0000 (08:47 +0000)
commitdf6ddd9b8f1ab18c7102b6d72080b29deeaaa763
tree7a4b9b5fb3ae7079d4fc73e7a61eb1e811b9377b
parent3cbf61e9ebc540cb35bc05ad4361d0a49f5fbd00
Plug leak in the ssltest

Removing -tls1 moved some tests from the legacy stack to the TLSv1.3 stack.
On a HRR, the alpn callback would be called twice and allocate the global
twice, thereby leaking. So free it up front.

Joint suffering with bcook and beck
regress/lib/libssl/ssl/ssltest.c