forked from wolfSSL/wolfssl
Fix for session cache locking with session stats in get_locked_session_stats
.
This commit is contained in:
@ -13817,6 +13817,9 @@ static int get_locked_session_stats(word32* active, word32* total, word32* peak)
|
|||||||
|
|
||||||
WOLFSSL_ENTER("get_locked_session_stats");
|
WOLFSSL_ENTER("get_locked_session_stats");
|
||||||
|
|
||||||
|
#ifndef ENABLE_SESSION_CACHE_ROW_LOCK
|
||||||
|
wc_LockMutex(&session_mutex);
|
||||||
|
#endif
|
||||||
for (i = 0; i < SESSION_ROWS; i++) {
|
for (i = 0; i < SESSION_ROWS; i++) {
|
||||||
SessionRow* row = &SessionCache[i];
|
SessionRow* row = &SessionCache[i];
|
||||||
#ifdef ENABLE_SESSION_CACHE_ROW_LOCK
|
#ifdef ENABLE_SESSION_CACHE_ROW_LOCK
|
||||||
|
Reference in New Issue
Block a user