From 9d05a4f2edbc6b3224c225e9e11c9216494ac361 Mon Sep 17 00:00:00 2001 From: jordan Date: Wed, 17 May 2023 16:25:27 -0400 Subject: [PATCH] Don't orphan ticBuff pointer in wolfSSL_DupSessionEx --- src/ssl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index c4354289f..2d693cd2e 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -21455,8 +21455,8 @@ static int wolfSSL_DupSessionEx(const WOLFSSL_SESSION* input, * the static buffer. */ if (ticBuff != NULL) { if (ticLenAlloc >= input->ticketLen) { - output->ticket = output->staticTicket; - output->ticketLenAlloc = 0; + output->ticket = ticBuff; + output->ticketLenAlloc = ticLenAlloc; } else { WOLFSSL_MSG("ticket dynamic buffer too small but we are "