Fix for DTLS DoClientHello HMAC free (function has another exit point).

This commit is contained in:
David Garske
2020-08-27 10:02:15 -07:00
parent 9af0e5528e
commit 3e685fdb5b

View File

@ -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);