Merge pull request #8246 from douzzer/20241203-wolfSSL_CTX_flush_sessions-sessionIDSz

20241203-wolfSSL_CTX_flush_sessions-sessionIDSz
This commit is contained in:
David Garske
2024-12-03 11:26:15 -08:00
committed by GitHub
2 changed files with 2 additions and 0 deletions

View File

@@ -463,6 +463,7 @@ STM32L475xx
STM32L4A6xx STM32L4A6xx
STM32L552xx STM32L552xx
STM32L562xx STM32L562xx
STM32MP135Fxx
STM32U575xx STM32U575xx
STM32U585xx STM32U585xx
STM32U5A9xx STM32U5A9xx

View File

@@ -843,6 +843,7 @@ void wolfSSL_CTX_flush_sessions(WOLFSSL_CTX* ctx, long tm)
#ifdef SESSION_CACHE_DYNAMIC_MEM #ifdef SESSION_CACHE_DYNAMIC_MEM
s != NULL && s != NULL &&
#endif #endif
s->sessionIDSz == ID_LEN &&
XMEMCMP(s->sessionID, id, ID_LEN) != 0 && XMEMCMP(s->sessionID, id, ID_LEN) != 0 &&
s->bornOn + s->timeout < (word32)tm s->bornOn + s->timeout < (word32)tm
) )