From 33d9341702813c0372bdb84e77a49c33142e3136 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 30 Jan 2017 19:37:17 +0000 Subject: [PATCH] Free up the memory for the NewSessionTicket extensions Reviewed-by: Kurt Roeckx (Merged from https://github.com/openssl/openssl/pull/2326) --- ssl/statem/statem_clnt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ssl/statem/statem_clnt.c b/ssl/statem/statem_clnt.c index d5d933cff9..6bd7481c56 100644 --- a/ssl/statem/statem_clnt.c +++ b/ssl/statem/statem_clnt.c @@ -2323,6 +2323,7 @@ MSG_PROCESS_RETURN tls_process_new_session_ticket(SSL *s, PACKET *pkt) /* This is a standalone message in TLSv1.3, so there is no more to read */ if (SSL_IS_TLS13(s)) { + OPENSSL_free(exts); ssl_update_cache(s, SSL_SESS_CACHE_CLIENT); return MSG_PROCESS_FINISHED_READING; } @@ -2332,6 +2333,7 @@ MSG_PROCESS_RETURN tls_process_new_session_ticket(SSL *s, PACKET *pkt) ssl3_send_alert(s, SSL3_AL_FATAL, al); err: ossl_statem_set_error(s); + OPENSSL_free(exts); return MSG_PROCESS_ERROR; } -- GitLab