mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
Fix allocating new sessions using the dynamic session cache.
This commit is contained in:
@ -15325,6 +15325,8 @@ int AddSessionToCache(WOLFSSL_CTX* ctx, WOLFSSL_SESSION* addSession,
|
||||
if (cacheSession == NULL) {
|
||||
return MEMORY_E;
|
||||
}
|
||||
XMEMSET(cacheSession, 0, sizeof(WOLFSSL_SESSION));
|
||||
sessRow->Sessions[idx] = cacheSession;
|
||||
#else
|
||||
cacheSession = &sessRow->Sessions[idx];
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user