Merge pull request #7377 from douzzer/20240328-multi-test-fixes

20240328-multi-test-fixes
This commit is contained in:
András Fekete
2024-03-28 16:58:30 -04:00
committed by GitHub

View File

@@ -14429,7 +14429,7 @@ int wolfSSL_GetSessionFromCache(WOLFSSL* ssl, WOLFSSL_SESSION* output)
XFREE(preallocNonce, output->heap, DYNAMIC_TYPE_SESSION_TICK); XFREE(preallocNonce, output->heap, DYNAMIC_TYPE_SESSION_TICK);
preallocNonce = NULL; preallocNonce = NULL;
#else #else
output->ticketNonce.data = XREALLOC(preallocNonce, output->ticketNonce.data = (byte*)XREALLOC(preallocNonce,
preallocNonceLen, output->heap, DYNAMIC_TYPE_SESSION_TICK); preallocNonceLen, output->heap, DYNAMIC_TYPE_SESSION_TICK);
if (output->ticketNonce.data != NULL) { if (output->ticketNonce.data != NULL) {
/* don't free the reallocated pointer */ /* don't free the reallocated pointer */