mirror of https://github.com/wolfSSL/wolfssl.git
Add args->input free in FreeSskeArgs.
This free is redundant in most cases but it covers the specific case of using async, exiting SendServerKeyExchange early due to WANT_WRITE or WC_PENDING_E, then later freeing the async context without calling SendServerKeyExchange again.pull/8870/head
parent
304019d28d
commit
2366718d5a
|
@ -35727,6 +35727,16 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||
XFREE(args->verifySig, ssl->heap, DYNAMIC_TYPE_SIGNATURE);
|
||||
args->verifySig = NULL;
|
||||
#endif
|
||||
|
||||
if (
|
||||
#ifdef WOLFSSL_ASYNC_IO
|
||||
args != NULL &&
|
||||
#endif
|
||||
args->input != NULL) {
|
||||
XFREE(args->input, ssl->heap, DYNAMIC_TYPE_IN_BUFFER);
|
||||
args->input = NULL;
|
||||
}
|
||||
|
||||
(void)args;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue