mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +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) {
|
if (cacheSession == NULL) {
|
||||||
return MEMORY_E;
|
return MEMORY_E;
|
||||||
}
|
}
|
||||||
|
XMEMSET(cacheSession, 0, sizeof(WOLFSSL_SESSION));
|
||||||
|
sessRow->Sessions[idx] = cacheSession;
|
||||||
#else
|
#else
|
||||||
cacheSession = &sessRow->Sessions[idx];
|
cacheSession = &sessRow->Sessions[idx];
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user