forked from wolfSSL/wolfssl
free the innerClientHello since it may be previously
allocated if an hrr happened
This commit is contained in:
@ -4540,6 +4540,11 @@ int SendTls13ClientHello(WOLFSSL* ssl)
|
|||||||
/* set the type to inner */
|
/* set the type to inner */
|
||||||
args->ech->type = ECH_TYPE_INNER;
|
args->ech->type = ECH_TYPE_INNER;
|
||||||
|
|
||||||
|
/* innerClientHello may already exist from hrr, free if it does */
|
||||||
|
if (args->ech->innerClientHello != NULL) {
|
||||||
|
XFREE(args->ech->innerClientHello, ssl->heap,
|
||||||
|
DYNAMIC_TYPE_TMP_BUFFER);
|
||||||
|
}
|
||||||
/* allocate the inner */
|
/* allocate the inner */
|
||||||
args->ech->innerClientHello =
|
args->ech->innerClientHello =
|
||||||
(byte*)XMALLOC(args->ech->innerClientHelloLen - args->ech->hpke->Nt,
|
(byte*)XMALLOC(args->ech->innerClientHelloLen - args->ech->hpke->Nt,
|
||||||
|
Reference in New Issue
Block a user