mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 11:44:38 +02:00
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.
This commit is contained in:
@@ -35727,6 +35727,16 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
|
|||||||
XFREE(args->verifySig, ssl->heap, DYNAMIC_TYPE_SIGNATURE);
|
XFREE(args->verifySig, ssl->heap, DYNAMIC_TYPE_SIGNATURE);
|
||||||
args->verifySig = NULL;
|
args->verifySig = NULL;
|
||||||
#endif
|
#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;
|
(void)args;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user