From 3e685fdb5b479fff2ff6dbfb0af2ef8371239fe9 Mon Sep 17 00:00:00 2001 From: David Garske Date: Thu, 27 Aug 2020 10:02:15 -0700 Subject: [PATCH] Fix for DTLS DoClientHello HMAC free (function has another exit point). --- src/internal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/internal.c b/src/internal.c index 8ded80642..eb83f220e 100644 --- a/src/internal.c +++ b/src/internal.c @@ -27529,6 +27529,9 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx, #endif if (ssl->options.clientState == CLIENT_KEYEXCHANGE_COMPLETE) { + #ifdef WOLFSSL_DTLS + wc_HmacFree(&cookieHmac); + #endif WOLFSSL_LEAVE("DoClientHello", ret); WOLFSSL_END(WC_FUNC_CLIENT_HELLO_DO);