Fix to make sure DTLS cookie HMAC free gets called. Note: This does not cover the many error case paths.

This commit is contained in:
David Garske
2020-08-26 09:41:26 -07:00
parent 14e1489365
commit 61545df606

View File

@ -27563,6 +27563,8 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
}
#endif
#ifdef WOLFSSL_DTLS
wc_HmacFree(&cookieHmac);
if (ret == 0 && ssl->options.dtls)
DtlsMsgPoolReset(ssl);
#endif