Skip to content

Commit 2366718

Browse files
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.
1 parent 304019d commit 2366718

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/internal.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35727,6 +35727,16 @@ static int DoSessionTicket(WOLFSSL* ssl, const byte* input, word32* inOutIdx,
3572735727
XFREE(args->verifySig, ssl->heap, DYNAMIC_TYPE_SIGNATURE);
3572835728
args->verifySig = NULL;
3572935729
#endif
35730+
35731+
if (
35732+
#ifdef WOLFSSL_ASYNC_IO
35733+
args != NULL &&
35734+
#endif
35735+
args->input != NULL) {
35736+
XFREE(args->input, ssl->heap, DYNAMIC_TYPE_IN_BUFFER);
35737+
args->input = NULL;
35738+
}
35739+
3573035740
(void)args;
3573135741
}
3573235742

0 commit comments

Comments
 (0)