src/ssl.c: add missing cast in wolfSSL_GetSessionFromCache().

This commit is contained in:
Daniel Pouzzner
2024-03-28 15:14:19 -05:00
parent 7a283edd68
commit 58462840c1

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 */