mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Fix for heap pointer in wolfSSL_DupSession
.
This commit is contained in:
@ -24095,10 +24095,10 @@ int wolfSSL_DupSession(const WOLFSSL_SESSION* input, WOLFSSL_SESSION* output,
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
tmp = (byte*)XREALLOC(ticBuff, input->ticketLen,
|
tmp = (byte*)XREALLOC(ticBuff, input->ticketLen,
|
||||||
output->heap, DYNAMIC_TYPE_SESSION_TICK);
|
input->heap, DYNAMIC_TYPE_SESSION_TICK);
|
||||||
if (tmp == NULL) {
|
if (tmp == NULL) {
|
||||||
WOLFSSL_MSG("Failed to allocate memory for ticket");
|
WOLFSSL_MSG("Failed to allocate memory for ticket");
|
||||||
XFREE(ticBuff, ssl->heap, DYNAMIC_TYPE_SESSION_TICK);
|
XFREE(ticBuff, input->heap, DYNAMIC_TYPE_SESSION_TICK);
|
||||||
output->ticket = NULL;
|
output->ticket = NULL;
|
||||||
output->ticketLen = 0;
|
output->ticketLen = 0;
|
||||||
output->ticketLenAlloc = 0;
|
output->ticketLenAlloc = 0;
|
||||||
|
Reference in New Issue
Block a user