From 9fbc167d0c85bd48842ba6315b1e9dc355810654 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Tue, 29 Oct 2019 12:11:52 +0100 Subject: [PATCH] Declare at start of scope --- src/ssl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index f4984536b..126a53b28 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -12618,6 +12618,7 @@ int AddSession(WOLFSSL* ssl) int ticLen = 0; #endif WOLFSSL_SESSION* session; + int i; int overwrite = 0; if (ssl->options.sessionCacheOff) @@ -12687,7 +12688,7 @@ int AddSession(WOLFSSL* ssl) return BAD_MUTEX_E; } - for (int i=0; ioptions.tls1_3) { if (XMEMCMP(ssl->session.sessionID, SessionCache[row].Sessions[i].sessionID, ID_LEN) == 0) { WOLFSSL_MSG("Session already exists. Overwriting.");