Commit 644feccad3 for strongswan.org

commit 644feccad3870a119e64295403ce621a339e246a
Author: Tobias Brunner <tobias@strongswan.org>
Date:   Mon Nov 2 10:25:22 2026 +0100

    tls-peer: Free session ID when retrying key exchange

diff --git a/src/libtls/tls_peer.c b/src/libtls/tls_peer.c
index 1dff1cc3c8..750e713bae 100644
--- a/src/libtls/tls_peer.c
+++ b/src/libtls/tls_peer.c
@@ -406,6 +406,7 @@ static status_t process_server_hello(private_tls_peer_t *this,

 		DESTROY_IF(this->dh);
 		this->dh = NULL;
+		chunk_free(&this->session);
 		this->original_suite = suite;
 		this->requested_curve = key_type;
 		this->cookie = chunk_clone(cookie);