From 58462840c1fd84c9d45762cb1c34279ca45a61a1 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Thu, 28 Mar 2024 15:14:19 -0500 Subject: [PATCH] src/ssl.c: add missing cast in wolfSSL_GetSessionFromCache(). --- src/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index ea66e429e..adb0e5a39 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -14429,7 +14429,7 @@ int wolfSSL_GetSessionFromCache(WOLFSSL* ssl, WOLFSSL_SESSION* output) XFREE(preallocNonce, output->heap, DYNAMIC_TYPE_SESSION_TICK); preallocNonce = NULL; #else - output->ticketNonce.data = XREALLOC(preallocNonce, + output->ticketNonce.data = (byte*)XREALLOC(preallocNonce, preallocNonceLen, output->heap, DYNAMIC_TYPE_SESSION_TICK); if (output->ticketNonce.data != NULL) { /* don't free the reallocated pointer */