forked from wolfSSL/wolfssl
src/ssl.c: fix whitespace and heap reference in FreeSession() (re 569c066fab
).
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