forked from wolfSSL/wolfssl
src/ssl.c: add missing cast in wolfSSL_GetSessionFromCache().
This commit is contained in:
@@ -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 */
|
||||||
|
Reference in New Issue
Block a user