From 54e9076c459cc8b5e8bcde4a7b0be5109e4b124b Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Fri, 24 Dec 2021 01:16:32 -0600 Subject: [PATCH] src/ssl.c: fix whitespace and heap reference in FreeSession() (re 569c066fab). --- src/ssl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ssl.c b/src/ssl.c index 215ff1d8f..3caf33f2c 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -23322,7 +23322,6 @@ WOLFSSL_SESSION* GetSessionRef(WOLFSSL* ssl) WOLFSSL_MSG("Error allocating client session reference"); return NULL; } - XMEMCPY(ref, session, refSize); ref->type = WOLFSSL_SESSION_TYPE_REF; @@ -23527,7 +23526,7 @@ void FreeSession(WOLFSSL_SESSION* session) #ifdef HAVE_SESSION_TICKET if (session->ticketLenAlloc > 0) { - XFREE(session->ticket, heap, DYNAMIC_TYPE_SESSION_TICK); + XFREE(session->ticket, session->heap, DYNAMIC_TYPE_SESSION_TICK); } #endif