mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Merge pull request #4703 from douzzer/20211224-fixits
20211224 ssl.c fixes
This commit is contained in:
@ -23322,7 +23322,6 @@ WOLFSSL_SESSION* GetSessionRef(WOLFSSL* ssl)
|
|||||||
WOLFSSL_MSG("Error allocating client session reference");
|
WOLFSSL_MSG("Error allocating client session reference");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
XMEMCPY(ref, session, refSize);
|
XMEMCPY(ref, session, refSize);
|
||||||
ref->type = WOLFSSL_SESSION_TYPE_REF;
|
ref->type = WOLFSSL_SESSION_TYPE_REF;
|
||||||
@ -23527,7 +23526,7 @@ void FreeSession(WOLFSSL_SESSION* session)
|
|||||||
|
|
||||||
#ifdef HAVE_SESSION_TICKET
|
#ifdef HAVE_SESSION_TICKET
|
||||||
if (session->ticketLenAlloc > 0) {
|
if (session->ticketLenAlloc > 0) {
|
||||||
XFREE(session->ticket, heap, DYNAMIC_TYPE_SESSION_TICK);
|
XFREE(session->ticket, session->heap, DYNAMIC_TYPE_SESSION_TICK);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user