Skip to content

Commit e63c50b

Browse files
committed
fixed double free happening during EvictSessionFromCache
1 parent 8c6de41 commit e63c50b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/ssl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19774,6 +19774,7 @@ void wolfSSL_FreeSession(WOLFSSL_CTX* ctx, WOLFSSL_SESSION* session)
1977419774
#ifdef HAVE_SESSION_TICKET
1977519775
if (session->ticketLenAlloc > 0) {
1977619776
XFREE(session->ticket, session->heap, DYNAMIC_TYPE_SESSION_TICK);
19777+
session->ticketLenAlloc = 0;
1977719778
}
1977819779
#if defined(WOLFSSL_TLS13) && defined(WOLFSSL_TICKET_NONCE_MALLOC) && \
1977919780
(!defined(HAVE_FIPS) || (defined(FIPS_VERSION_GE) && FIPS_VERSION_GE(5,3)))

0 commit comments

Comments
 (0)