Skip to content

Commit 4e08196

Browse files
authored
Merge pull request #7078 from douzzer/20231218-AddSessionToClientCache-round-2
20231218-AddSessionToClientCache-round-2
2 parents 3e483f3 + 7eed28f commit 4e08196

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ssl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14409,19 +14409,19 @@ ClientSession* AddSessionToClientCache(int side, int row, int idx, byte* serverI
1440914409
}
1441014410
if (error == 0) {
1441114411
WOLFSSL_MSG("Adding client cache entry");
14412+
14413+
ret = &ClientCache[clientRow].Clients[clientIdx];
14414+
1441214415
if (ClientCache[clientRow].totalCount < CLIENT_SESSIONS_PER_ROW)
1441314416
ClientCache[clientRow].totalCount++;
1441414417
ClientCache[clientRow].nextIdx++;
1441514418
ClientCache[clientRow].nextIdx %= CLIENT_SESSIONS_PER_ROW;
1441614419
}
1441714420

14418-
ret = &ClientCache[clientRow].Clients[clientIdx];
14419-
1442014421
wc_UnLockMutex(&clisession_mutex);
1442114422
}
1442214423
else {
1442314424
WOLFSSL_MSG("Hash session or lock failed");
14424-
error = -1;
1442514425
}
1442614426
}
1442714427
else {

0 commit comments

Comments
 (0)