[PATCH 4/4] tls: Add missing continue in tls_load_cached_server_session

Andrew Zaborowski <[email protected]>
Newsgroups dev.linux.lists.ell
Message-ID <[email protected]>
After we removed an expired session cache entry, move on to the next
entry in the loop.  Ignore the removed entry in the count, in the search
for the requested session ID, etc.  Not ignoring it would cause some
warnings to be logged later and other minor issues.
---
 ell/tls.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ell/tls.c b/ell/tls.c
index 2a8d509..d363765 100644
--- a/ell/tls.c
+++ b/ell/tls.c
@@ -1084,6 +1084,7 @@ static bool tls_load_cached_server_session(struct l_tls *tls,
 					*group + prefix_len + 1);
 			l_settings_remove_group(tls->session_settings, *group);
 			changed = true;
+			continue;
 		}
 
 		cnt++;
-- 
2.34.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.