Browse Source

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

Daniel Pouzzner 1 month ago
parent
commit
58462840c1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/ssl.c

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