mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
Declare at start of scope
This commit is contained in:
@@ -12618,6 +12618,7 @@ int AddSession(WOLFSSL* ssl)
|
|||||||
int ticLen = 0;
|
int ticLen = 0;
|
||||||
#endif
|
#endif
|
||||||
WOLFSSL_SESSION* session;
|
WOLFSSL_SESSION* session;
|
||||||
|
int i;
|
||||||
int overwrite = 0;
|
int overwrite = 0;
|
||||||
|
|
||||||
if (ssl->options.sessionCacheOff)
|
if (ssl->options.sessionCacheOff)
|
||||||
@@ -12687,7 +12688,7 @@ int AddSession(WOLFSSL* ssl)
|
|||||||
return BAD_MUTEX_E;
|
return BAD_MUTEX_E;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i=0; i<SESSIONS_PER_ROW; i++) {
|
for (i=0; i<SESSIONS_PER_ROW; i++) {
|
||||||
if (ssl->options.tls1_3) {
|
if (ssl->options.tls1_3) {
|
||||||
if (XMEMCMP(ssl->session.sessionID, SessionCache[row].Sessions[i].sessionID, ID_LEN) == 0) {
|
if (XMEMCMP(ssl->session.sessionID, SessionCache[row].Sessions[i].sessionID, ID_LEN) == 0) {
|
||||||
WOLFSSL_MSG("Session already exists. Overwriting.");
|
WOLFSSL_MSG("Session already exists. Overwriting.");
|
||||||
|
Reference in New Issue
Block a user